I have a Sapphire Radeon RX580 with 8GB and I am using the amdgpu drivers with Mint 21.3. I cannot get opencl to work at all. Any info?
What version of darktable and what package (flatpak, snap, obs, system repo)?
I have tried it on 4.8 and 5.0. both flatpack, appimage and system repo. Radeon/jammy repo 6.1.3
Darktable-cltest should be the first thing to check. Then see what it takes to enable opencl in that version of mint.
For general system level info you can try: clinfo
Well the flatpak doesnβt work with amd because there are no flatpak drivers for it
darktable-cltest
darktable 4.8.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.3.0
Colord β ENABLED
gPhoto2 β ENABLED
GMIC β ENABLED - Compressed LUTs are supported
GraphicsMagick β ENABLED
ImageMagick β DISABLED
libavif β DISABLED
libheif β DISABLED
libjxl β DISABLED
OpenJPEG β ENABLED
OpenEXR β ENABLED
WebP β ENABLED
See resources | darktable for detailed documentation.
See Sign in to GitHub Β· GitHub to report bugs.
0.0469 [dt_get_sysresource_level] switched to 2 as `large'
0.0469 total mem: 128831MB
0.0469 mipmap cache: 16103MB
0.0469 available mem: 88068MB
0.0470 singlebuff: 2012MB
0.0480 [opencl_init] opencl disabled via darktable preferences
0.0482 [opencl_init] opencl library 'libOpenCL' found on your system and loaded, preference 'default path'
0.1514 [opencl_init] found 2 platforms
0.1514 [opencl_init] no devices found for Advanced Micro Devices, Inc. (vendor) - AMD Accelerated Parallel Processing (name)
[opencl_init] found 1 device
[dt_opencl_device_init]
DEVICE: 0: βpthread-Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHzβ
CONF KEY: cldevice_v5_portablecomputinglanguagepthreadintelrxeonrcpue526700260ghz
PLATFORM, VENDOR & ID: Portable Computing Language, The pocl project, ID=32902
CANONICAL NAME: portablecomputinglanguagepthreadintelrxeonrcpue526700260ghz
DRIVER VERSION: 1.8
DEVICE VERSION: OpenCL 1.2 pocl HSTR: pthread-x86_64-pc-linux-gnu-sandybridge
DEVICE_TYPE: CPU, unified mem
GLOBAL MEM SIZE: 126784 MB
MAX MEM ALLOC: 32768 MB
MAX IMAGE SIZE: 32768 x 32768
MAX WORK GROUP SIZE: 4096
MAX WORK ITEM DIMENSIONS: 3
MAX WORK ITEM SIZES: [ 4096 4096 4096 ]
ASYNC PIXELPIPE: NO
PINNED MEMORY TRANSFER: NO
AVOID ATOMICS: NO
MICRO NAP: 1000
ROUNDUP WIDTH & HEIGHT 16x16
CHECK EVENT HANDLES: 128
TILING ADVANTAGE: 0.000
DEFAULT DEVICE: NO
*** marked as disabled ***
[opencl_init] no suitable devices found.
0.1708 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.
clinfo
Number of platforms 2
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.1 AMD-APP (3614.0)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback
Platform Extensions function suffix AMD
Platform Host timer resolution 1ns
Platform Name Portable Computing Language
Platform Vendor The pocl project
Platform Version OpenCL 2.0 pocl 1.8 Linux, None+Asserts, RELOC, LLVM 11.1.0, SLEEF, DISTRO, POCL_DEBUG
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_pocl_content_size
Platform Extensions function suffix POCL
Platform Name AMD Accelerated Parallel Processing
Number of devices 0
Platform Name Portable Computing Language
Number of devices 1
Device Name pthread-Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
Device Vendor GenuineIntel
Device Vendor ID 0x8086
Device Version OpenCL 1.2 pocl HSTR: pthread-x86_64-pc-linux-gnu-sandybridge
Driver Version 1.8
Device OpenCL C Version OpenCL C 1.2 pocl
Device Type CPU
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 32
Max clock frequency 2600MHz
Device Partition (core)
Max number of sub-devices 32
Supported partition types equally, by counts
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 4096x4096x4096
Max work group size 4096
Preferred work group size multiple (kernel) 8
Preferred / native vector sizes
char 16 / 16
short 16 / 16
int 8 / 8
long 4 / 4
half 0 / 0 (n/a)
float 8 / 8
double 4 / 4 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Address bits 64, Little-Endian
Global memory size 132942594048 (123.8GiB)
Error Correction support No
Max memory allocation 34359738368 (32GiB)
Unified memory for Host and Device Yes
Minimum alignment for any data type 128 bytes
Alignment of base address 1024 bits (128 bytes)
Global Memory cache type Read/Write
Global Memory cache size 20971520 (20MiB)
Global Memory cache line size 64 bytes
Image support Yes
Max number of samplers per kernel 16
Max size for 1D images from buffer 2147483648 pixels
Max 1D or 2D image array size 2048 images
Max 2D image size 32768x32768 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 128
Local memory type Global
Local memory size 262144 (256KiB)
Max number of constant args 8
Max constant buffer size 262144 (256KiB)
Max size of kernel argument 1024
Queue properties
Out-of-order execution Yes
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 1ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels Yes
printf() buffer size 16777216 (16MiB)
Built-in kernels (n/a)
Device Extensions cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_3d_image_writes cl_khr_fp64 cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, β¦) No platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, β¦) No platform
clCreateContext(NULL, β¦) [default] No platform
clCreateContext(NULL, β¦) [other] Success [POCL]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No devices found in platform
ICD loader properties
ICD loader Name Khronos OpenCL ICD Loader
ICD loader Vendor Khronos Group
ICD loader Version 3.0.6
ICD loader Profile OpenCL 3.0
Please upload txt files instead of the long thread.
You do not have the right amd drivers. Iβm not a Ubuntu user, so I donβt know what to tell you to install.
Search the forum or mint forum for how to enable opencl drivers on your system.
On Fedora the OpenCL driver for AMD is rocm, maybe something similar on Ubuntu?