From 83c24c615ad5ea9cc937ffac1111e883982e5035 Mon Sep 17 00:00:00 2001 From: Gil Pitney Date: Fri, 10 Apr 2015 22:19:39 +0000 Subject: Updated error check for clSetUserEventStatus per v1.2 spec. Extra check for execution_status < 0, which is valid. Signed-off-by: Gil Pitney --- src/api/api_event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api_event.cpp b/src/api/api_event.cpp index db92ca7..69d9241 100644 --- a/src/api/api_event.cpp +++ b/src/api/api_event.cpp @@ -184,7 +184,7 @@ clSetUserEventStatus(cl_event event, command->type() != Coal::Event::User) return CL_INVALID_EVENT; - if (execution_status != CL_COMPLETE) + if (!((execution_status == CL_COMPLETE) || (execution_status < 0))) return CL_INVALID_VALUE; if (command->status() != CL_SUBMITTED) -- cgit v1.2.3