Ver código fonte

clEnqueueMarker is deprecated by clEnqueueMarkerWithWaitList. Be able to use both

Samuel Thibault 11 anos atrás
pai
commit
83a38dfa85
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      src/drivers/opencl/driver_opencl.c

+ 4 - 0
src/drivers/opencl/driver_opencl.c

@@ -685,7 +685,11 @@ int _starpu_opencl_driver_run_once(struct _starpu_worker *args)
 		int err;
 		cl_command_queue queue;
 		starpu_opencl_get_queue(args->devid, &queue);
+#ifdef CL_VERSION_1_2
+		err = clEnqueueMarkerWithWaitList(queue, 0, NULL, &task_events[args->devid]);
+#else
 		err = clEnqueueMarker(queue, &task_events[args->devid]);
+#endif
 		if (STARPU_UNLIKELY(err != CL_SUCCESS)) STARPU_OPENCL_REPORT_ERROR(err);
 	}
 	else