The officially official Devuan Forum!

You are not logged in.

#1 2024-04-28 09:01:36

dchmelik
Member
Registered: 2024-04-28
Posts: 11  

OpenCL/AMDGPU-PRO?

On Devuan 5 (or when stable, newer) can one install OpenCL/AMDGPU-PRO, and how?  ROCm didn't work for me in the past, but might be AMDGPU-PRO's basis now, which lately works fine, and one can install only its OpenCL part... or is there a better way?  All I found on this topic was old/outdated material for older Devuan and much older Debian.

Last edited by dchmelik (2024-04-28 09:02:39)

Offline

#2 2024-05-06 18:55:58

uther
Member
Registered: 2019-05-16
Posts: 73  

Re: OpenCL/AMDGPU-PRO?

Most of the ROCm 5.2 stack is already packaged in Debian and is available on Daedalus. Look for `rocminfo`, `rocm-smi`, `libhsa-runtime64`, `libamdhip64`, `librocmsmi64`, etc.
And ROCm 5.7 is available on ceres if you dare.

At some point AMD in their infinite wisdom decided to change how they package AMDGPU-PRO drivers. All hacks that relied on extracting individual .deb from the official Ubuntu installer package stopped working.

Last edited by uther (2024-05-06 18:56:40)


soystemd-free diet

Offline

#3 2024-05-07 00:22:47

dchmelik
Member
Registered: 2024-04-28
Posts: 11  

Re: OpenCL/AMDGPU-PRO?

I'm just left with more questions than I started with: after a few years, why isn't there the rocm-all package yet, and otherwise, what's the full list what I need or how/where do I get that?

Offline

#4 2024-05-07 16:50:45

uther
Member
Registered: 2019-05-16
Posts: 73  

Re: OpenCL/AMDGPU-PRO?

after a few years, why isn't there the rocm-all package yet

I don't know maybe because:
- Packaging team is less than 5 people.
- ROCm stack is gigantic, consists of userspace and kernel space drivers both graphic (interop) and compute plus a dozen specific Machine Learning libraries and more.
- ROCm depends on custom LLVM compiler - good luck porting it anywhere by yourself!
- Up until recently ROCm was scattered in 3 different official organizations on Github in 30+ repositories. Now its 1 org, but repo count is the same.
- Up until recently there was no proper hardware CI with GPUs in Debian.
- GPUs cost $$$ and the team basically bought the hardware with their own private money.

and otherwise, what's the full list what I need or how/where do I get that?

You didn't even specify what exactly you need ROCm for and you expect to get useful answers?

Last edited by uther (2024-05-07 16:51:11)


soystemd-free diet

Offline

#5 2024-05-09 09:25:17

dchmelik
Member
Registered: 2024-04-28
Posts: 11  

Re: OpenCL/AMDGPU-PRO?

uther wrote:

You didn't even specify what exactly you need ROCm for [...]

dchmelik wrote:

OpenCL

As a mainly Slackware GNU/Linux user, for which standard method (if you want support) is install entire OS (and for which OpenCL for AMD is combined as one extra package) I don't bother with what type of OpenCL programs (BOINC.Berkeley.edu , miners) may use; I plan to just install entire OpenCL.  I don't like installing bits & pieces until a non-development OS says you need a 'dev' package (not separated out in development OS) or something fails then you need to find dependencies of dependencies of dependencies to 100th level; I plan to just install entire OpenCL.

Last edited by dchmelik (2024-05-09 09:37:45)

Offline

#6 2024-05-09 15:55:37

chris2be8
Member
Registered: 2018-08-11
Posts: 346  

Re: OpenCL/AMDGPU-PRO?

Saying what model(s) of GPU you need to run it on would be a good start. As would what CPU(s), motherboard(s) etc you have. You havn't even told us if you have a desktop or a laptop.

Offline

#7 2024-05-10 00:45:25

dchmelik
Member
Registered: 2024-04-28
Posts: 11  

Re: OpenCL/AMDGPU-PRO?

OpenCL works for all AMD display/video/graphics cards (which means desktop or server) not too old... in this case, Radeon RX Vega64 & 5700 & 6900 & in future 7900 XT(X)s... CPU & system-/logic-/main-/mother-board is irrelevant (maybe unless not too old, but they're i7s new enough): OpenCL is only for these graphics cards.

Last edited by dchmelik (2024-05-12 23:21:46)

Offline

#8 2024-05-21 14:59:23

mr12345
Member
Registered: 2023-01-09
Posts: 22  

Re: OpenCL/AMDGPU-PRO?

I have Docker ROCm/Pytorch installed on Excalibur/Ceres. I do not know your purpose but at least it is good for LLMs and SRBminer. I like it for not messing up my setup with tons of packages.


I am just a Linux beginner enthusiast smile

Offline

#9 2024-05-23 23:20:42

dchmelik
Member
Registered: 2024-04-28
Posts: 11  

Re: OpenCL/AMDGPU-PRO?

I just want to install OpenCL, not Docker.

Offline

#10 2024-06-10 05:02:32

dchmelik
Member
Registered: 2024-04-28
Posts: 11  

Re: OpenCL/AMDGPU-PRO?

I see amdgpu-install script now lists Debian inside so tried adding Devuan.

Offline

#11 2025-10-12 04:35:56

dchmelik
Member
Registered: 2024-04-28
Posts: 11  

Re: OpenCL/AMDGPU-PRO?

I was able to use AMD's ROCm/OpenCL on Devuan 4 with Radeon RX 6900 XT, but not RX 5700 XT, nor RX Vega 64, so I want to set this thread unsolved.  Sometimes a newer driver doesn't work but older one does, and in the process of installing & uninstalling several, often the installer runs but doesn't even install anything... sometimes it does; sometimes it doesn't.

Last edited by dchmelik (2025-10-12 04:37:33)

Offline

#12 2025-10-12 04:49:26

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,489  

Re: OpenCL/AMDGPU-PRO?

Fair enough. Old thread, but since it's yours...

Online

#13 2025-10-12 06:40:59

stargate-sg1-cheyenne-mtn
Member
Registered: 2023-11-27
Posts: 385  

Re: OpenCL/AMDGPU-PRO?


Be Excellent to each other and Party On!
https://www.youtube.com/watch?v=rph_1DODXDU
https://en.wikipedia.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure
Do unto others as you would have them do instantaneously back to you!

Offline

#14 2025-10-12 09:05:54

kapqa
Member
Registered: 2019-01-02
Posts: 458  

Re: OpenCL/AMDGPU-PRO?

you should be able to use opencl also without rocm, since it is supposed only for newer graphic cards (at least to my understanding).

what i use is "amdgpu-install" and since few iterations whas also able to get opencl on polaris gpu with the --opencl=legacy. (it is now however deprecated)
but devuan is bit tricky since it is not officially supported, as debian, but i can function (with some tricks).

what is use on newer graphics card that is supported by opencl rocr stack is combination like

sudo amdgpu-install -y --usecase=workstation,amf --opencl=rocr  --vulkan=pro,amdvlk --accept-eula

afterwards what is needed for opencl (at least on my computer)

sudo usermod -a -G render $LOGNAME
sudo usermod -a -G video $LOGNAME

https://amdgpu-install.readthedocs.io/e … lling.html

for rocm, it seems your graphic cards are not supported aswell, but to be honest i am not seeing trough all those different install routines and graphics stacks.

https://www.phoronix.com/news/AMD-ROCm-7.0.2-Released

Last edited by kapqa (2025-10-12 12:10:51)

Offline

#15 2025-10-12 17:18:34

dchmelik
Member
Registered: 2024-04-28
Posts: 11  

Re: OpenCL/AMDGPU-PRO?

I hope I didn't scare uther, chris2be8 away by originally not saying as much, but I'll elaborate.  I use OpenCL for number-crunching, such as Berkeley Open Infrastructure for Network Computing (BOINC) and sometimes cryptocurrency mining.  It varies.  I crunched more for BOINC than 96% of crunchers (since I had a 19.2 GFlops workstation when many weren't even 1/8 that) and still like doing so much.  I don't know how BOINC uses; all I know is I need OpenCL: don't know I can get away with parts.  I usually install like the following.

amdgpu-install --usecase=opencl --opencl=rocr --no-32 --no-dkms --accept-eula

Last night I did get a RX 5700 XT working by rsyncing most a workstation/server to another then restoring original fstab, etc... I'll ask about this in another thread.

I wrote what I mostly use, but when my *BSD & Slackware workstation broke down, I had to use family Devuan one while, and it was much better than using regular Debian, Kubuntu/Neon, Xubuntu/Mint, RedHat, and easier than both Gentoo and Arch/Artix.  Now I'm asking about OpenCL on Devuan 4 which I consider the best OS for my family's PCs.  What I use mostly doesn't get automatic updates or otherwise would be too hard for them to add stuff, but Devuan at least can use KDE's software installer, though we all now use XFCE with KDE programs for a few years.  I guess in a few weeks/months I'll upgrade them to Devuan 5 (I probably had been using development/experimental/testing version if I hadn't just made a typographical error).

Last edited by dchmelik (2025-10-12 17:25:14)

Offline

Board footer