Hi,
I have posted this Memory leak in OpenCL under Linux when the number of kernels calls is huge - CUDA Programming and Performance - NVIDIA Developer Forums on nvidia forum but I still could not find a solution. I am facing a memory leak in OpenCL that only happens when I call the kernel a large number of times, around 10^8 times. I am aware that memory leaks are expected when events are used and not released, but can this happens when not using them? My code is a little big but I can post parts of it here if it helps. I am using the c++ wrapper and calling the kernel this way
a.global_size = {p.N_first_reduction};
a.local_size = {p.local_size};
p.queue.enqueueNDRangeKernel(p.E_int, a.kernel_offset, a.global_size, a.local_size);
As I sad on nvidia forum I tried
a.global_size = {p.N_first_reduction};
a.local_size = {p.local_size};
p.queue.enqueueNDRangeKernel(p.E_int, a.kernel_offset, a.global_size, a.local_size, NULL, NULL);
But nothing has changed. Is there a way to find what is goig wrong?
Thanks in advance