Re: HelloJOCL Problems on MacOSX
Posted by nyholku on Nov 20, 2013; 12:39pm
URL: https://forum.jogamp.org/HelloJOCL-Problems-on-MacOSX-tp2456996p4030667.html
Hi,
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();
with
CLDevice device=context.getDevices()[0]; // 0 happens to be the GPU in my system YMMV
br Kusti