[Beignet] [PATCH 4/4] utests: event should be released
Pan Xiuli
xiuli.pan at intel.com
Thu Sep 24 02:13:27 PDT 2015
This is also gpgpu event, which can cause leakes.
Just release it.
Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
---
utests/profiling_exec.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/utests/profiling_exec.cpp b/utests/profiling_exec.cpp
index afa55ba..4232772 100644
--- a/utests/profiling_exec.cpp
+++ b/utests/profiling_exec.cpp
@@ -85,6 +85,7 @@ static void profiling_exec(void)
OCL_CALL(clGetEventProfilingInfo, exec_event, CL_PROFILING_COMMAND_START, sizeof(cl_ulong), &time_start, NULL);
OCL_CALL(clGetEventProfilingInfo, exec_event, CL_PROFILING_COMMAND_END, sizeof(cl_ulong), &time_end, NULL);
+ clReleaseEvent(exec_event);
check_profiling_time(time_queue, time_submit, time_start, time_end);
// Compare
--
2.1.4
More information about the Beignet
mailing list