cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Siassei
Journeyman III

AMD APP SDK 2.4 and OpenGL Interop

searching for clGetGLContextInfoKHR

Hello,

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?

0 Likes
1 Reply
jstier
Journeyman III

"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.

 

0 Likes