浏览代码

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

Nathalie Furmento 12 年之前
父节点
当前提交
be426ed2a6
共有 1 个文件被更改,包括 3 次插入1 次删除
  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;