在 Ubuntu 20.04 上为 Thinkpad T495(AMD iGPU)上的 Darktable 启用 OpenCL

在 Ubuntu 20.04 上为 Thinkpad T495(AMD iGPU)上的 Darktable 启用 OpenCL

我有一台搭载 AMD 3500 PRO 的 Thinkpad T495:

$ lspci | grep VGA
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev d2)

使用 clinfo 命令我可以看到该平台有一个 OpenCL 配置文件:

$ clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.0 AMD-APP (3182.0)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback 
  Platform Extensions function suffix             AMD

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 0

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]              No platform
  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

我尝试安装 amdgpu-pro,但安装失败并出现此错误

Unpacking amdgpu-dkms-firmware (1:5.6.0.15-1098277) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./amdgpu-dkms-firmware_5.6.0.15-1098277_all.deb (--unpack):
 trying to overwrite '/usr/share/doc/amdgpu-dkms-firmware/LICENSE', which is also in package rock-dkms-firmware 1:3.7-20
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/opt/amdgpu-pro-local/./amdgpu-dkms-firmware_5.6.0.15-1098277_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

当我打开 Darktable 时,仍然不支持 OpenCL 选项: Darktable 截图

答案1

我知道这是一个老问题...但是你安装了 snap 吗?如果是的话,请删除它并安装官方 PPA。 https://software.opensuse.org/download.html?project=graphics:darktable&package=darktable 谢谢

相关内容