소스 검색

src/core/workers.c: fix code when cuda is disabled

Nathalie Furmento 8 년 전
부모
커밋
cfd56ffc4e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/core/workers.c

+ 2 - 0
src/core/workers.c

@@ -1260,7 +1260,9 @@ int starpu_initialize(struct starpu_conf *user_conf, int *argc, char ***argv)
 
 	_starpu_initialize_registered_performance_models();
 
+#if defined(STARPU_USE_CUDA)
 	_starpu_cuda_init();
+#endif
 	/* Launch "basic" workers (ie. non-combined workers) */
 	if (!is_a_sink)
 		_starpu_launch_drivers(&_starpu_config);