Hello world,
I'm developing an asynchronous Windows application and have noticed a strange loss of system memory. My application internally tracks memory usage, and when not using OpenCL at all it matches what is reported by the system through taskmgr. What's curious is the memory leak is more or less depending on what OpenCL version and device I use. Summarizing what taskmgr reports:
No OpenCL (vanilla C code) - ~8MB
OpenCL 2.0 Experimental CPU ~ 1.2 GB
OpenCL 1.2 CPU ~ 350 MB
OpenCL 1.2 GPU (HD 4600) ~ 40 MB
I've checked that events are being released in a timely manner (props to INDE), and seeing this much variability in the leak across OpenCL implementations and device types makes me think my application isn't solely behind the leak.
Any suggestions on what might be causing it aside from a bug in the OpenCL implementation?