Ping for review, thx. -----Original Message----- From: Beignet [mailto:[email protected]] On Behalf Of Pan Xiuli Sent: Thursday, September 24, 2015 5:13 PM To: [email protected] Cc: Pan, Xiuli <[email protected]> Subject: [Beignet] [PATCH 4/4] utests: event should be released
This is also gpgpu event, which can cause leakes. Just release it. Signed-off-by: Pan Xiuli <[email protected]> --- 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 _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
