diff --git a/src/framework/cl/cl_engine.h b/src/framework/cl/cl_engine.h index 654db6d38e39c2851e4bd5c17ef1ccbb08ae82b9..deb07ea09730695214a322c8ea9f7ca994d274b2 100644 --- a/src/framework/cl/cl_engine.h +++ b/src/framework/cl/cl_engine.h @@ -82,8 +82,9 @@ class CLEngine { } std::unique_ptr<_cl_event, CLEventDeleter> CreateEvent(cl_context context) { - cl_event event = clCreateUserEvent(context, status_); + cl_event event = clCreateUserEvent(context, &status_); std::unique_ptr<_cl_event, CLEventDeleter> event_ptr(event); + CL_CHECK_ERRORS(status_); return std::move(event_ptr); }