Explorar o código

fix build with simgrid without cuda

Samuel Thibault %!s(int64=12) %!d(string=hai) anos
pai
achega
e0167e89bc
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/drivers/cuda/driver_cuda.c

+ 2 - 0
src/drivers/cuda/driver_cuda.c

@@ -386,7 +386,9 @@ int _starpu_cuda_driver_init(struct starpu_driver *d)
 	init_context(devid);
 #endif
 
+#ifdef STARPU_USE_CUDA
 	_starpu_cuda_limit_gpu_mem_if_needed(devid);
+#endif
 	_starpu_memory_manager_init_global_memory(args->memory_node, STARPU_CUDA_WORKER, args->devid, args->config);
 
 	/* one more time to avoid hacks from third party lib :) */