Problem with clEnqueueNDRangeKernel, memory leak
I use java binding for work with openCl, driver ATI version 11-2_xp32_dd_ccc_ocl. I detect that memory leak occur every time when method clEnqueueNDRangeKernel launch. The memory leak is small, about 300 bytes per call. But if application call kernel permanently that occure to significant memory leak. Personally, my memory is lost at a rate of 10 MB per second. Also error CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST occure after 700000 call of method clEnqueueNDRangeKernel. ?alculations performed correctly in the program, but the crash occurred about twenty minutes to work. For detection of thid problem i create simple test
Crash occure on 700000 iterations when i use java binding JOCL-0.1.4-beta, bat with C++ binding this test work fine.
Registriert seit: 05.08.2008
Re: Problem with clEnqueueNDRangeKernel, memory leak
Indeed, this one was my fault... There had been reports about memory leaks recently (e.g. in this thread) but they seemed to be mainly related to creating/releasing cl_mem-Objects with the NVIDIA implementation. Now I checked this again, and finally found a wrong application of cl_events in the clEnqueue* Operations which caused events to be created with every call.
I have uploaded a new version, which currently contains only the Windows 32 binaries - you might want to test it. I'll try to add the other binaries and create a Maven release as soon as possible.
The memory leak for cl_mem's on NVIDIA platforms still exists, but this is far less critical than the one for the clEnqueue* operations that should be fixed now.
Thanks for pointing this out!
|Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)|
|Mapped memory||christux||JCuda||5||10.04.2013 16:11|
|Memory leaks||kacperpl1||JOCL||1||21.11.2010 21:51|
|memory alloc overhead||cyau||JCuda||2||23.08.2010 10:18|
|Memory Leak with Action Guards?||Unregistered||DockingFrames||4||27.07.2009 08:33|
|DF cleanup memory||onmomo||DockingFrames||4||21.03.2009 22:29|