diff options
author | Gil Pitney <gil.pitney@linaro.org> | 2015-04-10 22:19:39 +0000 |
---|---|---|
committer | Gil Pitney <gil.pitney@linaro.org> | 2015-04-10 22:19:39 +0000 |
commit | 83c24c615ad5ea9cc937ffac1111e883982e5035 (patch) | |
tree | c7d79813bd59df92508e8af90eab0a3c699d8efd | |
parent | 7ecd59bacc9ee41b50e0c7b40767fab2fc892a90 (diff) |
Updated error check for clSetUserEventStatus per v1.2 spec.
Extra check for execution_status < 0, which is valid.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
-rw-r--r-- | src/api/api_event.cpp | 2 |
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) |