Browse Source

src/drivers/cuda/driver_cuda.c: function _starpu_cuda_limit_gpu_mem_if_needed also needs to be defined when simgrid is enabled

Nathalie Furmento 12 years ago
parent
commit
52a7ff482a
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/drivers/cuda/driver_cuda.c

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

@@ -65,7 +65,6 @@ _starpu_cuda_discover_devices (struct _starpu_machine_config *config)
 }
 
 #ifdef STARPU_USE_CUDA
-#ifndef STARPU_SIMGRID
 /* In case we want to cap the amount of memory available on the GPUs by the
  * mean of the STARPU_LIMIT_CUDA_MEM, we decrease the value of
  * props[devid].totalGlobalMem which is the value returned by
@@ -100,7 +99,6 @@ static void _starpu_cuda_limit_gpu_mem_if_needed(unsigned devid)
 			devid, (size_t)to_waste/(1024*1024), (size_t)limit, (size_t)totalGlobalMem/(1024*1024),
 			(size_t)(totalGlobalMem - to_waste)/(1024*1024));
 }
-#endif
 
 size_t starpu_cuda_get_global_mem_size(unsigned devid)
 {