There seems to be an issue with CL context reference-counting on Intel OpenCL GPU devices. Calling clRetainContext followed by clReleaseContext on a context object results in a silent failure that invalidates the context and triggers a crash on subsequent OpenCL calls on my computer.
A minimal VS2010 project to reproduce is attached. The project has no dependencies besides an OpenCL SDK, and should built & run out of the box.
* Windows 7 64bit SP1 (fully patched)
* Intel Core i7-3630QM CPU with HD graphics 4000 (Ivy Bridge laptop)
* Intel OpenCL GPU driver 22.214.171.12432 (latest from december 2012)
It would be great if this bug could be fixed as soon as possible since it breaks the image processing pipeline on our 3D ultrasound imaging software. Neither the Nvidia nor AMD OpenCL drivers are suffering from this type of problems.
Thanks in advance,
GE Vingmed Ultrasound (GE Healthcare)