←back to thread

1045 points mfiguiere | 6 comments | | HN request time: 1.126s | source | bottom
1. Farfignoggen ◴[] No.39350172[source]
Phoronix Article from earlier(1):

"While AMD ships pre-built ROCm/HIP stacks for the major enterprise Linux distributions, if you are using not one of them or just want to be adventurous and compile your own stack for building HIP programs for running on AMD GPUs, one of the AMD Linux developers has written a how-to guide. "(1)

(1)

"Building An AMD HIP Stack From Upstream Open-Source Code

Written by Michael Larabel in Radeon on 9 February 2024 at 06:45 AM EST."

https://www.phoronix.com/news/Building-Upstream-HIP-Stack

replies(2): >>39350429 #>>39351699 #
2. JonChesterfield ◴[] No.39350429[source]
Hähnle is one of our best, that'll be solid. http://nhaehnle.blogspot.com/2024/02/building-hip-environmen.... Looks pretty similar to how I build it.

Side point, there's a driver in your linux kernel already that'll probably work. The driver that ships with rocm is a newer version of the same and might be worth building via dkms.

Very strange that the rocm github doesn't have build scripts but whatever, I've been trying to get people to publish those for almost five years now and it just doesn't seem to be feasible.

replies(1): >>39351827 #
3. rekado ◴[] No.39351699[source]
You can also install HIP/ROCm via Guix:

https://hpc.guix.info/blog/2024/01/hip-and-rocm-come-to-guix...

> AMD has just contributed 100+ Guix packages adding several versions of the whole HIP and ROCm stack

4. Farfignoggen ◴[] No.39351827[source]
From the Phoronix comments section of the Article that I linked to:

https://www.phoronix.com/forums/forum/linux-graphics-x-org-d...

And I'm on Linux Mint 21.3 and so how to change any instillation script to think that Mint is Ubuntu to get that to maybe work there but there's no how-to for Mint like the one that AMD provides for Ubuntu! And really that's compiled By AMD for the specific Linux Kernel so not any DKMS sort of methods there AFAIK! but I'm no Linux Expert and just want some one-click install or that to ship with the Distro already working so Blender 3D's iGPU/dGPU accelerated Cycles rendering is possible on AMD Radeon consumer GPUs.

replies(1): >>39352051 #
5. JonChesterfield ◴[] No.39352051{3}[source]
If you wait for a while then Debian packaging effort will flow down through the repos and you'll have apt install or synaptic GUI access to the prebuilt binaries.

You've already got an amdgpu driver in your kernel. Possibly an old one but it'll be there. ROCm is userspace.

replies(1): >>39352226 #
6. Farfignoggen ◴[] No.39352226{4}[source]
I'm waiting for Rusticl(OpenCL Implemented in the Rust programming language) as part of the MESA driver stack to get enabled in Mint 22(Sometime in April 2024). And maybe I can use the Older Legacy Blender 2.93/earlier editions that use OpenCl as the GPU compute API instead of Blender 3.0/later editions that have dropped support for OpenCL in favor of CUDA/PTX(Whatever) that requires the HIP part of ROCm to get translated to a form that can be executed on Radeon GPU hardware.

CUDA PTX is that Intermediate Language representation that's portable for cross platform usage but I'm not exactly sure how that is implemented for Blender 3.0/later.

P.S I have Ryzen 3000/Zen+ series APUs and Vega Integrated Graphics on 2 systems and the laptop has Ryzen 3550H/Vega 8CU iGPU and Polaris Radeon RX560X dGPU while the Mini Desktop PC has Ryzen 3400G/Vega 11CU iGPU only.