OppenCl .. Problems again

A fresh install on my old laptop. By now I think that I have learned how to get OpenCl up and running. Should be a piece of cake!
Starting dt with the -d opencl option the problem points to my preferences … but the preferences are locking me out of opencl use.
Plane Jane dt 4.6.1 … nothing fancy on Manjaro

0.1129 [opencl_init] opencl disabled via darktable preferences
0.1130 [opencl_init] opencl library ‘libOpenCL’ found on your system and loaded, preference ‘default path’
1.0311 [opencl_init] 0 platforms detected, error: Unknown OpenCL error
1.0311 [opencl_init] FINALLY: opencl is NOT AVAILABLE and NOT ENABLED.

You need to give us more info than just “my old laptop” please.

1 Like

darktable-cltest -d verbose

Fresh install of DT or DT and the OS…might help to guide what may be the issue…

Here is the full listing:

darktable 4.6.1
Copyright (C) 2012-2024 Johannes Hanika and other contributors.

Compile options:
Bit depth → 64 bit
Debug → DISABLED
SSE2 optimizations → ENABLED
OpenMP → ENABLED
OpenCL → ENABLED
Lua → ENABLED - API version 9.2.0
Colord → ENABLED
gPhoto2 → ENABLED
GMIC → ENABLED - Compressed LUTs are supported
GraphicsMagick → ENABLED
ImageMagick → DISABLED
libavif → ENABLED
libheif → ENABLED
libjxl → ENABLED
OpenJPEG → ENABLED
OpenEXR → ENABLED
WebP → ENABLED

See resources | darktable for detailed documentation.
See Sign in to GitHub · GitHub to report bugs.

 0.0326 [dt_get_sysresource_level] switched to 1 as `default'
 0.0326   total mem:       15618MB
 0.0326   mipmap cache:    1952MB
 0.0326   available mem:   7809MB
 0.0326   singlebuff:      122MB
 0.0468 [opencl_init] opencl disabled via darktable preferences
 0.0469 [dt_dlopencl_init] found default opencl runtime library 'libOpenCL'
 0.0470 [opencl_init] opencl library 'libOpenCL' found on your system and loaded, preference 'default path'
 0.9073 [opencl_init] 0 platforms detected, error: Unknown OpenCL error
 0.9074 [opencl_init] FINALLY: opencl is NOT AVAILABLE and NOT ENABLED.

The laptop is an Lenovo W530 that has been running dt for some years … sucessfully with Manjaro/Arch O/S.

Installed the OCL-ICD stuff?

This is with the -d verbose?

Can you post clinfo?

I had just completed a system rebuild. I am going to run through the process again and see if the problem still exists.

Very carefully did a full Manjaro system install followed by setting the critical opencl items. Installed the ‘basic’ dt 4.6.1 (rather than trying to get the git through Arch) and Manjaro has been fully updated. Preferences indiicate that the Nvidia CUDA driver is installed. The ‘libportmidi.so.2’ error is new, the file is unknown to my package manager. Below is the latest dt -d output.

Compile options:
Bit depth → 64 bit
Debug → DISABLED
SSE2 optimizations → ENABLED
OpenMP → ENABLED
OpenCL → ENABLED
Lua → ENABLED - API version 9.2.0
Colord → ENABLED
gPhoto2 → ENABLED
GMIC → ENABLED - Compressed LUTs are supported
GraphicsMagick → ENABLED
ImageMagick → DISABLED
libavif → ENABLED
libheif → ENABLED
libjxl → ENABLED
OpenJPEG → ENABLED
OpenEXR → ENABLED
WebP → ENABLED

See resources | darktable for detailed documentation.
See Sign in to GitHub · GitHub to report bugs.

 0.1035 [dt_get_sysresource_level] switched to 1 as `default'
 0.1035   total mem:       15618MB
 0.1035   mipmap cache:    1952MB
 0.1035   available mem:   7809MB
 0.1035   singlebuff:      122MB
 0.1141 [opencl_init] opencl disabled via darktable preferences
 0.1143 [opencl_init] opencl library 'libOpenCL' found on your system and loaded, preference 'default path'
 0.1147 [opencl_init] 0 platforms detected, error: Unknown OpenCL error
 0.1147 [opencl_init] FINALLY: opencl is NOT AVAILABLE and NOT ENABLED.
 1.3328 [lib_load_module] failed to open `midi': libportmidi.so.2: cannot open shared object file: No such file or directory

This please.

clinfo: command not found

Am I missing something?

path lookup ‘/home/david/clinfo’ fails with: ‘No such file or directory’
this was the response to " darktable -d verbose clinfo"

You seem to have an OS issue and nothing to do with dt. I don’t know about Manjaro, but this is an old laptop. Manjaro has GPU drivers for your GPU card?

You need to install clinfo for it to work…

This laptop has been running dt both basic and git versions for many many years and Manjaro has been my O/S for at least 4 of those years.
I will revert to the non-opengl version at this point and thrash again when I get home in i weeks time. My main Delll system is running just fine with the git version.
As a matter of interest does anybody know of a small program that I can load that also uses OpenCl … it would make for an interesting test.

Running dt for years on that laptop using opencl?

Yes there is a small program that also uses opencl, it’s called clinfo. Look it up in your distro package manager.

Installed clinfo … used it with the -a option (no -verbose option)

[david@W530 ~]$ clinfo -a
Number of platforms 0

ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.3.2
ICD loader Profile OpenCL 3.0

No opencl platforms. You have the correct Intel and nvidia packages installed?

Can you answer this question? Does dt run without opencl?

Right now you don’t seem to have the right drivers installed.

Yes, dt runs correctly otherwise. So, somewhere it must be a driver problem.
There are no open source drivers for this older hardware but it is baffling that it has worked in prior years.