[Beignet] [PATCH] runtime: fix event status check bug.
xionghu.luo at intel.com
xionghu.luo at intel.com
Tue Jul 28 19:21:58 PDT 2015
From: Luo <xionghu.luo at intel.com>
clGetEventProfilingInfo could query all event status.
this could fix the shoc project reported CL_PROFILING_INFO_NOT_AVAILABLE
issue.
https://github.com/vetter/shoc/issues/47
Signed-off-by: Luo Xionghu <xionghu.luo at intel.com>
---
src/cl_api.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cl_api.c b/src/cl_api.c
index 28783fd..0ac7112 100644
--- a/src/cl_api.c
+++ b/src/cl_api.c
@@ -1472,7 +1472,7 @@ clGetEventProfilingInfo(cl_event event,
if (event->type == CL_COMMAND_USER ||
!(event->queue->props & CL_QUEUE_PROFILING_ENABLE) ||
- event->status != CL_COMPLETE) {
+ event->status < CL_COMPLETE || event->status > CL_QUEUED) {
err = CL_PROFILING_INFO_NOT_AVAILABLE;
goto error;
}
--
1.9.1
More information about the Beignet
mailing list