Hello. I'm running Darktable on Arch Linux with a Radeon RX480 processor, and I can't get OpenCL to work. I'm running amggpu loaded into the kernel. This is the result from clinfo:
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
And here is the result from darktable -d opencl:
Compile options:
Bit depth -> 64 bit
Debug -> DISABLED
SSE2 optimizations -> ENABLED
OpenMP -> ENABLED
OpenCL -> ENABLED
Lua -> ENABLED - API version 9.3.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 https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.
0.0792 [dt_get_sysresource_level] switched to 1 as `default'
0.0792 total mem: 64233MB
0.0792 mipmap cache: 8029MB
0.0792 available mem: 32116MB
0.0792 singlebuff: 501MB
0.0854 [opencl_init] opencl disabled via darktable preferences
0.0855 [opencl_init] opencl library '/usr/lib/libOpenCL.so' found on your system and loaded, preference '/usr/lib/libOpenCL.so'
0.0855 [opencl_init] 0 platforms detected, error: Unknown OpenCL error
0.0855 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.
1.8085 [lib_load_module] failed to open `midi': libportmidi.so.2: cannot open shared object file: No such file or directory
ICD loader Profile OpenCL 3.0
I have enabled opencl via .config/darktable/darktablerc, but every time I launch the program and go back to darktablerc, it is reset to FALSE.
Any help would be appreciated.