Re: GL-CL interoperability in OSX
Posted by
Michael Bien on
Apr 20, 2011; 1:47pm
URL: https://forum.jogamp.org/GL-CL-interoperability-in-OSX-tp2837450p2842854.html
a GL 2.x context is sufficient for GL-CL interoperability.
could you run
java -jar jocl.jar:gluegen-rt.jar -Djava.library.path="path/to/jocl/libs:path/to/gluegen-rt/libs" com.jogamp.opencl.util.CLInfo
and post/attach the results?
best regards,
michael
On 04/19/2011 05:56 AM, ac [via jogamp] wrote:
> 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