Login  Register

Re: CL_DEVICE_NOT_AVAILABLE when creating CLContext with 64-bit Java on GTX 970

Posted by Wade Walker on Mar 31, 2016; 2:22am
URL: https://forum.jogamp.org/CL-DEVICE-NOT-AVAILABLE-when-creating-CLContext-with-64-bit-Java-on-GTX-970-tp4036560p4036565.html

SuspiciousDroid wrote
The stack trace is pretty much what we'd expect:
     [java] Exception in thread "main" com.jogamp.opencl.CLException$CLOutOfResourcesException: can not create CL context [error: CL_OUT_OF_RESOURCES]
     [java]     at com.jogamp.opencl.CLException.checkForError(CLException.java:67)
     [java]     at com.jogamp.opencl.CLContext.createContext(CLContext.java:225)
     [java]     at com.jogamp.opencl.CLContext.create(CLContext.java:190)
     [java]     at com.jogamp.opencl.demos.bandwidth.BandwidthBenchmark.main(BandwidthBenchmark.java:99)
     [java] Java Result: 1
I've seen stuff on the web saying that maybe this sort of thing is a driver conflict or corruption, e.g. http://forum.jogamp.org/How-to-run-jocl-tests-td4029688.html. In some cases, it seemed to help to completely uninstall all nvidia and OpenCL stuff, then just put the nvidia drivers back on.

Also, it might be worthwhile to try some of nvidia's C/C++ OpenCL samples, like the ones at https://developer.nvidia.com/opencl. If those fail in the same way, they we definitely know there's some driver weirdness going on. I've done this a few times with strange OpenGL bugs, to rule out anything related to Java or Jogamp.