cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

notyou
Adept III

Memory Leak in clCreateKernelsInProgram

I can't figure out what's causing the memory leak in this case.

The profiler comes back with the message: Memory leak detected [Ref = 1, Handle = CL_SUCCESS]: Object created by clCreateKernelsInProgram.

Then the actual line is errorCheck(clCreateKernelsInProgram(program, 1, &kernel, &numKernels), "9 - creating kernel");

What does it want me to free?

0 Likes
2 Replies
bpurnomo
Staff

Did you free the kernel through clReleaseKernel call?

0 Likes
lbin
Staff

Thanks for reporting this issue, This is a bug in APP Profiler.

Any kernels that are created by clCreateKernelsInProgram will be reported as unreleased cl objects.

The fix will be in the next release of APP Profiler.

0 Likes