OpenCL: Images creation fails in parallel threads

If you use clCreateImage2D (I didn’t test the 3D version) inside a thread (pthreads tested), the resulting memory object is not usable (clGetMemObjectInfo, clGetImageInfo, whatever), inside or outside the thread.

On the other hand, if the object is generated out of the thread will be accessible inside.

I could not test it in other platforms (only NVidia) yet, but I think that could be a driver bug.

Jose Luis Cercós Pita