summaryrefslogtreecommitdiff
path: root/utests/profiling_exec.cpp
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2015-10-13 12:51:16 +0800
committerYang Rong <rong.r.yang@intel.com>2015-10-13 14:59:56 +0800
commit11c29b3acbf476357306f2da5902cc56d9913217 (patch)
tree86d13646e643f0be0251690f3cb4411bd6dc3357 /utests/profiling_exec.cpp
parentf88990a37c2e3cd55ebb9686bf364d2595fd66b3 (diff)
utests: event should be released
This is also gpgpu event, which can cause leakes. Just release it. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'utests/profiling_exec.cpp')
-rw-r--r--utests/profiling_exec.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/utests/profiling_exec.cpp b/utests/profiling_exec.cpp
index afa55ba4..42327723 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