the offiziel OpenCL Interop Spec from Khronos describe a method to find all Devices for an OpenCLInterop context.
e.g clGetGLContextInfoKHR(..., CL_DEVICES_FOR_GL_CONTEXT_KHR, ....)
But I can not compile this code. error log
... undefined reference to `clGetGLContextInfoKHR' ...
Does AMD APP SDK support this method? What library must I am linking?
"When you use a function that is defined in an extension you need to use clGetExtensionFunctionAddress() to get a pointer to it."
Even though it is declared, it can only be resolved at runtime.