Reply – Re: CL-GL interoperability in OSX 10.8.2
Your Name
or Cancel
In Reply To
Re: CL-GL interoperability in OSX 10.8.2
— by Shadi Shadi
Hi Everyone,

Any progress on this issue?
I am trying to run the CLGLTest and get the same exception:

Exception in thread "main" com.jogamp.opencl.CLException$CLInvalidValueException: can not create CL context [error: CL_INVALID_VALUE]

GLSLTest reports this information:

isGLMemorySharingSupported==true on:
    CLDevice [id: 16915200 name: ATI Radeon HD 6750M type: GPU profile: FULL_PROFILE]
CLPlatform [name: Apple, vendor: Apple, profile: FULL_PROFILE, version: OpenCL 1.2 (Dec  4 2012 18:26:30)]

GLCLInteroperabilityDemo also returns the same exception.

I am running Mac OS X 10.8.3 and JOCL 2.0rc11. I also it tried with the automatic build from May 18th and get the same error.

If it is of any help, I think I got CL/GL interoperability working at some point in C++ using the following properties:

CGLContextObj kCGLContext = CGLGetCurrentContext();
CGLShareGroupObj kCGLShareGroup = CGLGetShareGroup(kCGLContext);
cl_context_properties properties[] = { CL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE, (cl_context_properties)kCGLShareGroup, 0 };

But that was with an older version of Max OS X, a year or so already.

If I can help you in any way with this please let me know. This issue is quite critical to me because it render JOCL unusable on my machine.

Thanks a lot!