Reply – Re: HelloJOCL Problems on MacOSX
Your Name
or Cancel
In Reply To
Re: HelloJOCL Problems on MacOSX
— by nyholku nyholku

just a note that today (20.10.2013) on my MacBook Pro Retina Mac OS X 10.8.5 /NVIDIA GeForce GT 650M 1024 MB the code as it is/was today at wiki failed with this error and this thread helped me a lot. The problem is that on Mac the getMaxFlopsDevice returns the CPU, not GPU. Trivially by passed that by replacing:

            CLDevice device = context.getMaxFlopsDevice();
            CLDevice device=context.getDevices()[0]; // 0 happens to be the GPU in my system YMMV

br Kusti