Re: CL_DEVICE_NOT_AVAILABLE when creating CLContext with 64-bit Java on GTX 970
Posted by SuspiciousDroid on Mar 31, 2016; 3:29pm
URL: https://forum.jogamp.org/CL-DEVICE-NOT-AVAILABLE-when-creating-CLContext-with-64-bit-Java-on-GTX-970-tp4036560p4036566.html
Thanks for pointing me to the nvidia samples. I tried them out, and most of them failed.
Most of them don't even print an error message but just crash when they're trying to load an OpenCL kernel.
I then proceeded to completely uninstall all intel and nvidia drivers and then only reinstalled the nvidia ones.
I also checked if the OpenCL.dll in C:\Windows\System32 and C:\Program Files\NVIDIA Corporation\OpenCL are the same,
and now (unlike before the reinstall) they actually are.
Unfortunately, this still didn't fix the issue, and everything was still crashing like it did before :(
I then downloaded GPU Caps Viewer, which proceeded to correctly detect the GTX 970 as an OpenCL device.
Even better, its OpenCL demos even worked! This completely surprised me, as nvidias own samples didn't work,
but the ones of a utility program do?
After that, I went on to run more of the jocl-demos. Most of them still didn't work, but the Julia3d demo
strangely started working. After checking out the source code, I only found one difference between that
demo and the other ones; it first runs this line:
GLProfile.initSingleton();
So I swiftly imported JOGL into my project and added that line, and my with this hacky workaround, my program
actually started working!
This really leaves me with only one reaction: wat.