Browse Source

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

Nathalie Furmento 8 years ago
parent
commit
cfd56ffc4e
1 changed files with 2 additions and 0 deletions
  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);