summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaura Ekstrand <laura.d.ekstrand@intel.com>2015-06-19 16:08:18 -0700
committerLaura Ekstrand <laura.d.ekstrand@intel.com>2015-07-24 17:52:06 -0700
commitea9ae4ac9361cecf47624f69752857c92ae13bed (patch)
tree3822bd7f1913ad34a4c0d6bba1c1b19a09990202
parentaf6276266179596e36ff3b0970c8205223328db6 (diff)
Comment out CL_PROFILING_INFO_NOT_AVAILABLE.laura-master
I suspect that this is too conformant to OpenCL 1.2 spec.
-rw-r--r--src/cl_api.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/cl_api.c b/src/cl_api.c
index 1ba775ff..cf604ac5 100644
--- a/src/cl_api.c
+++ b/src/cl_api.c
@@ -1469,12 +1469,13 @@ clGetEventProfilingInfo(cl_event event,
CHECK_EVENT(event);
- if (event->type == CL_COMMAND_USER ||
- !(event->queue->props & CL_QUEUE_PROFILING_ENABLE) ||
- event->status != CL_COMPLETE) {
- err = CL_PROFILING_INFO_NOT_AVAILABLE;
- goto error;
- }
+ /* if (event->type == CL_COMMAND_USER ||
+ * !(event->queue->props & CL_QUEUE_PROFILING_ENABLE) ||
+ * event->status != CL_COMPLETE) {
+ * err = CL_PROFILING_INFO_NOT_AVAILABLE;
+ * goto error;
+ * }
+ */
if (param_value && param_value_size < sizeof(cl_ulong)) {
err = CL_INVALID_VALUE;