CL_INVALID_OPERATION in clCreateContextFromType

Hi everybody,

I am developing an application using OpenGL and OpenCL interoperability. All was going right in my machine but, when I changed it I got CL_INVALID_OPERATION error creating the context (with the same code).

I have read the OpenCL documentation of clCreateContextFromType function (http://www.khronos.org/registry/cl/sdk/ … mType.html) and the only reference to this error appears when you use the DirectX interoperabilty (it is not my case).

Actually I have 3 Nvidia 580 cards. When I explore the number of platforms, OpenCL returns only one wich has 4 OpenCL devices. In my other machine I had only one Nvidia card so I think the problem could be there.

Anyone knows what is happening?

Thank you!