I have a new PC with a fairly high-end graphics card, an nVidia RTX 2060 with 6 GB RAM. At first, it was using the open source nouveau driver, and darktable did not detect availability of openCL. Then, I installed the proprietary nVidia driver, and darktable then detected and used openCL.
However, I just now rechecked, and darktable no longer detects openCL. I double-checked that the proprietary nVidia driver is still in use, and it is. So, I don’t understand why darktable is no longer detecting openCL. Can anyone help me understand and correct this, please?
I have a relatively old nVidia card (GeForce GTX 770) but one that’s recent enough that it should be supported by the latest driver. However I had issues where if I stopped using darktable for 20-30 seconds and then went back it threw an error and reverted to CPU. I ended up having to go back to the legacy driver (340xx series) and now I don’t have any problems. So if possible it’s worth trying one of the older 340xx or 390xx driver series and see if that resolves the problem.
Try rerunning from the command line with -d opencl and see what gets output.
I’ve had problems recently with OpenCL crashing. This happens most frequently when the computer wakes from suspend. Closing Darktable, typing “sudo rmmod nvidia_uvm; sudo modprobe nvidia_uvm” and restarting Darktable fixes the problem. However, I haven’t investigated further.
Thanks, @Frank_Lepore . I think a reboot may be in order.
Two minutes later: Yes, rebooting the host got openCL working again, systemwide and for darktable.
Something(s) new I learned while troubleshooting: LibreOffice uses openCL, too. And, separately, there is a clinfo package and tool that shows the overall status of openCL on the system. I also learned that my nVidia card has 1,920 Cuda cores for processing.