Reply – Re: HelloJOCL Problems on MacOSX
Your Name
Subject
Message
or Cancel
In Reply To
Re: HelloJOCL Problems on MacOSX
— by ralphrmartin ralphrmartin
Michael, thanks for taking the time to reply.

Decreasing the element count seemed to overcome the out of memory problem.

Howeevr, the worksize is still a problem.The MacBook Pro has both an Nvidia GeForce GT 330M and Intel integrated graphics; I am forcing it to use the former. I get two devices reported using CLInfo:
CL_DEVICE_NAME   GeForce GT 330M   Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz
and respectively
CL_DEVICE_MAX_WORK_GROUP_SIZE  512   1

So I don't really understand why that value of 256 is failing. In fact even a worksize as small as 2 fails. Maybe it is using the CPU instead of the GPU?

If I set it to 1, I then get a different error:
Exception in thread "main" java.lang.NullPointerException
       at com.jogamp.opencl.CLContext.release(CLContext.java:486)
       at com.jogamp.opencl.CLContext.release(CLContext.java:504)
       at HelloJOCL.main(HelloJOCL.java:54)