The CLGLContext class contains factory methods that accept a CLPlatform and CLDevice's. However there is no API to determine which CLDevice can be use with a certain GLContext. From the OpenCL 1.1. spec it seems you can retrieve this information using clGetGLContextInfoKHR.