Sfoglia il codice sorgente

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

Nathalie Furmento 8 anni fa
parent
commit
cfd56ffc4e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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);