From f2bb3f72be7a19d8855d7492ccffcbaf26e4dcd7 Mon Sep 17 00:00:00 2001 From: liuruilong Date: Fri, 19 Oct 2018 20:45:50 +0800 Subject: [PATCH] add event --- src/framework/cl/cl_engine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/framework/cl/cl_engine.h b/src/framework/cl/cl_engine.h index 654db6d38e..deb07ea097 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); } -- GitLab