OpenCL and Darktable 3.8

Not sure whether this is a 3.8 issue, or whether it occurred with an earlier, 3.7 version. I noticed that processing was slower than I expected and on investigation that openCL wasn’t being used. Running darktable-cltest gives:

0.020659 [opencl_init] opencl related configuration options:
0.020667 [opencl_init] 
0.020669 [opencl_init] opencl: 1
0.020671 [opencl_init] opencl_scheduling_profile: 'very fast GPU'
0.020674 [opencl_init] opencl_library: ''
0.020676 [opencl_init] opencl_memory_requirement: 768
0.020679 [opencl_init] opencl_memory_headroom: 400
0.020682 [opencl_init] opencl_device_priority: '*/!0,*/*/*'
0.020686 [opencl_init] opencl_mandatory_timeout: 200
0.020689 [opencl_init] opencl_size_roundup: 16
0.020709 [opencl_init] opencl_async_pixelpipe: 0
0.020712 [opencl_init] opencl_synch_cache: active module
0.020714 [opencl_init] opencl_number_event_handles: 25
0.020717 [opencl_init] opencl_micro_nap: 1000
0.020720 [opencl_init] opencl_use_pinned_memory: 0
0.020722 [opencl_init] opencl_use_cpu_devices: 0
0.020724 [opencl_init] opencl_avoid_atomics: 0
0.020739 [opencl_init] 
0.020811 [opencl_init] could not find opencl runtime library 'libOpenCL'
0.020840 [opencl_init] could not find opencl runtime library 'libOpenCL.so'
0.021027 [opencl_init] found opencl runtime library 'libOpenCL.so.1'
0.021041 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded
0.048800 [opencl_init] could not get platforms: -1001
0.048810 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
0.048812 [opencl_init] initial status of opencl enabled flag is OFF.

I am running on openSuse with an NVidia GEforce GTX 1070. Any ideas as to why openCL is disabled.

Is the box checked in your preferences?

Looks more like the nvidia kernel module is not loaded.

If I do an lsmod I get

nvidia_drm 69632 6
nvidia_modeset 1204224 17 nvidia_drm
nvidia_uvm 2531328 0
nvidia 35373056 1055 nvidia_uvm,nvidia_modeset
drm_kms_helper 319488 1 nvidia_drm
drm 634880 10 drm_kms_helper,nvidia,nvidia_drm

It looks as though the NVidia module is loaded

Try checking if the files and symlinks described in
https://docs.darktable.org/usermanual/3.8/en/special-topics/opencl/setting-up/
are all present and correct.

And my own summary of the same, that contains an additional hint that may or may not be relevant:

1 Like

I have tried to match your details for Ubuntu with my OpenSuse system. As far as I can see, my system meets the requirements in terms of having the nVidia kernel module loaded, the nVidia openCL library installed etc.

I am not sure whether the problem is with the driver or the kernel (Tumbleweed ships with a 5.15 kernel), so I have taken the problem to the SuSe forums.