Following my OpenCL/OpenGL Window interop work:
now has come to Linux for Nvidia GPU computing registered developers via 195.17 driver!
Also found in the simpleGL is the key to enabling it:
cl_context_properties props[] = {CL_GL_CONTEXT_KHR, (cl_context_properties)glXGetCurrentContext(), CL_GLX_DISPLAY_KHR, (cl_context_properties) glXGetCurrentDisplay(), CL_CONTEXT_PLATFORM, (cl_context_properties)cpPlatform, 0};
Remember Windows is:
cl_context_properties akProperties[] = {
CL_GL_CONTEXT_KHR,
(cl_context_properties)wglGetCurrentContext(),
CL_WGL_HDC_KHR,
(cl_context_properties)wglGetCurrentDC(), 0
};
Saturday, 7 November 2009
opencl/opengl linux interop! seen in opencl cuda 3.0 sdk samples
Posted on 03:51 by Unknown
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment