aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/api/api_event.cpp2
1 files changed, 1 insertions, 1 deletions
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)