You are not logged in.

#1 2023-01-05 09:33:48

sjostrand
Member
Registered: 2022-08-07
Posts: 26

get openCl to work with Darktable 4.2 on vanilla arch

Hello all Arch Guru's
I am a noob that fall in love with Arch after trying different Linux environments.

I use arch latest with KDE

I use to AMD CPU ax3950x and Graphics card 6900xt

And i can't get Darktable to get OpenCL to work.

So my question is if someone have a step by step how to get OpenCL on my arch without breaking it!

Or drivers for AMD graphic card install that make OpenCL to work.

I appreciate all the help and apologize if i ask to much.

Offline

#2 2023-01-05 10:00:49

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: get openCl to work with Darktable 4.2 on vanilla arch

AMDGPU PRO OpenCL - used because Mesa OpenCL is not fully complete. Proprietary component only for Polaris GPUs. The onward GPUs use the open ROCm OpenCL.

(https://wiki.archlinux.org/title/AMDGPU … components)

rocm-opencl-runtime

Part of AMD's ROCm GPU compute stack, officially supporting GFX8 and later cards (Fiji, Polaris, Vega), with unofficial and partial support for Navi10 based cards. To support cards older than Vega, you need to set the runtime variable ROC_ENABLE_PRE_VEGA=1. This is similar, but not quite equivalent to specifying opencl=rocr in ubuntu's amdgpu-install, because this package's rocm version differs from ubuntu's installer version.


opencl-amdAUR, opencl-amd-devAUR

ROCr and Orca OpenCL repackaged from AMD's ubuntu releases. Equivalent to specifying opencl=rocr,legacy in ubuntu's amdgpu-install.

(https://wiki.archlinux.org/title/GPGPU#AMD/ATI)

(bonus reading)


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2023-01-05 11:14:36

sjostrand
Member
Registered: 2022-08-07
Posts: 26

Re: get openCl to work with Darktable 4.2 on vanilla arch

> missing dependence :
  -> numactl
  -> ncurses5-compat-libs

When i try OpenCL-AMD from ROCr and Orca OpenCL repackaged from AMD's ubuntu releases

Offline

#4 2023-01-05 11:44:24

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,149

Re: get openCl to work with Darktable 4.2 on vanilla arch

numactl is in [extra]-repo , ncurses5-compat-libs is in aur and needs to be built/installed before opencl-amd .

Last edited by Lone_Wolf (2023-01-05 11:45:11)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2023-01-05 11:46:19

Adriik
Member
From: Argentina
Registered: 2022-03-10
Posts: 134
Website

Re: get openCl to work with Darktable 4.2 on vanilla arch

Run makepkg with -s

From makepkg --help:

  -s, --syncdeps   Install missing dependencies with pacman

numactl is in repos, but ncurses5-compat-libs is in AUR: https://aur.archlinux.org/packages/ncurses5-compat-libs

You need to build that ncurses package to build opencl-amd

Edit: I wrote slow...

Last edited by Adriik (2023-01-05 11:46:38)


I'm just someone. Please use [code] [/code] tags.

Offline

#6 2023-01-23 22:12:18

jayvee
Member
Registered: 2022-04-13
Posts: 1

Re: get openCl to work with Darktable 4.2 on vanilla arch

I am using Darktable as well, but I have an Nvidia card installed.  I had to install cuda to get OpenCL to work for me.
You may want to give it a try and see if it helps with your issue.  I also rebooted after installing Darktable and cuda.
Good luck, hope it helps.

Offline

Board footer

Powered by FluxBB