Explorar o código

src/drivers/opencl: add reminder to get rid off wasted_memory

Nathalie Furmento %!s(int64=12) %!d(string=hai) anos
pai
achega
be426ed2a6
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/drivers/opencl/driver_opencl.c

+ 3 - 1
src/drivers/opencl/driver_opencl.c

@@ -63,7 +63,9 @@ _starpu_opencl_discover_devices(struct _starpu_machine_config *config)
  * mean of the STARPU_LIMIT_OPENCL_MEM, we allocate a big buffer when the driver
  * is launched. */
 static cl_mem wasted_memory[STARPU_MAXOPENCLDEVS];
-
+#ifdef STARPU_DEVEL
+#warning get rid off wasted_memory (see driver cuda)
+#endif
 static void limit_gpu_mem_if_needed(int devid)
 {
 	cl_int err;