Login  Register

GL-CL interoperability in OSX

Posted by ac on Apr 19, 2011; 3:56am
URL: https://forum.jogamp.org/GL-CL-interoperability-in-OSX-tp2837450.html

Hello

I'm trying to create a CLGL context to share data between OpenCL and OpenGL.

I tested the CLGLInteroperabilityDemo, but I get this error:

Exception in thread "AWT-EventQueue-0" com.jogamp.opencl.CLException$CLInvalidValueException: can not create CL context [error: CL_INVALID_VALUE]
        at com.jogamp.opencl.CLException.checkForError(CLException.java:67)
        at com.jogamp.opencl.CLContext.createContext(CLContext.java:228)
        at com.jogamp.opencl.gl.CLGLContext.create(CLGLContext.java:124)
        at test.GLCLInteroperabilityDemo.init(GLCLInteroperabilityDemo.java:132)
        ...

I'm on OSX 10.6.7, with a NVidia geforce 320M card. I can create pure CL contexts and everything works fine in that case, the problem happens when I attempt CL-GL. Can be this related to the GL context being 2 instead of 3?

Thanks,
Andres