You don't give details on your HW setup. However, from past experience
this error code looks like a NVIDIA specific one. It tends to be
generated when the program is not able to access the required device
special files:
crw-rw----+ 1 root video 195, 0 17. Aug 08:19 /dev/nvidia0
crw-rw----+ 1 root video 195, 255 17. Aug 08:19 /dev/nvidiactl
crw-rw----+ 1 root video 195, 254 17. Aug 08:19 /dev/nvidia-modeset
crw-rw----+ 1 root video 239, 0 17. Aug 08:19 /dev/nvidia-uvm
Either the access permissions do not fit: the user running darktable
needs write access. In my case the user needs to be member of group
video. Easy to fix.
Or those device special files are not generated at all. This may happen
if your X11 system is started on a secondary graphics system like Intel.
In that case the NVIDIA drivers and device special files might not be
loaded/generated by default. NVIDIA OpenCL would try to take care by
calling /usr/bin/nvidia-modprobe. But as this happens in user space
permissions for loading the kernel module and generating the device
special files are not sufficient as long as nvidia-modprobe is not SUID
root. And typically the SUID flag is not set for nvidia-modprobe in most
distros. Simple test: run darktable-cltest as root. If you then can use
OpenCL in darktable as a normal user the issue is confirmed. You will
need to set the SUID flag on nvidia-modprobe manually.
Ulrich
Am 16.08.19 um 22:50 schrieb David Vincent-Jones:
I am getting this error message despite all the indications that openCL
is all in place.
0.231688 [opencl_init]
0.231905 [opencl_init] found opencl runtime library 'libOpenCL'
0.231929 [opencl_init] opencl library 'libOpenCL' found on your system
and loaded
0.232108 [opencl_init] could not get platforms: -1001
0.232116 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
0.232119 [opencl_init] initial status of opencl enabled flag is OFF.
darktable 2.7.0+1613~gdd7ed32b1 ... Manjaro/Arch
I have tried with and without my secondary monitor in order to avoid
memory conditions.
____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org