As I do not see an OpenCL specific forum I had to post this here… As the title says I am facing a memory leak in OpenCL that is really hard to find… I am running Monte Carlo simulations of magnetic particles and I have to do many kernels calls. Everything goes fine until the number of kernels calls gets close to 10^9. At this point the memory consumption goes from around 70 mb to more than 4 gb and the kernel kills the executable. ON the screen appears the error code -6, related to CL_OUT_OF_HOST_MEMORY. If the simulation parameters are so that the total number of calls is not this high the code runs ok, everything correct… It is a little big but I can post parts of it here if it helps. At the dmesg output appears the following message when a memory leak occurs:
NVRM: Xid (0000:02:00): 31, Ch 00000001, engmask 00000101, intr 10000000
My system specs are the following:
Operational system: Arch Linux
Kernel version: 3.7.4
Nvidia driver: 313.18
What does this NVRM error means? What can I do to have a clue of where the problem is?
Thanks in advance,