Re: CL_DEVICE_NOT_AVAILABLE when creating CLContext with 64-bit Java on GTX 970
Posted by tinkerthinker on Jun 29, 2016; 6:51am
URL: https://forum.jogamp.org/CL-DEVICE-NOT-AVAILABLE-when-creating-CLContext-with-64-bit-Java-on-GTX-970-tp4036560p4036860.html
Ok, I've solved the problem. I was writing a program that forked a process after having initialized the NVIDIA device in the parent process. Apparently Nvidia OpenCL doesn't like this.
I've modified my code to delay initializing the GPU until after the fork, this allows me to run multiple concurrent OpenCL forked processes for one program. I can now create the context without getting any errors. :)