[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ROCm on riscv64



Hi Sakura286,

On 2025-09-28 21:29, Sakura286 wrote:
ROCm now can be built [1] and run [2] on riscv64.

Llama.cpp with ROCm 6.2.4 backend have been tested with SOPHGO SG2044 and RevyOS (a Debian-based distribution for RISC-V PC. See ROCm source code [3] and kernel [4]). But key kernel patch for ROCm on riscv64 has not been upstreamed [5]. By the way, most features of SG2044 are now supported by kernel upstream [6].

That's very interesting. Impressive work.

Is it appropriate to enable riscv64 build with Debian ROCm?

This is something that has been brought up a few times over the years. The criteria that we used to choose the existing architectures was whether it was possible to enable the Linux kernel's AMD_HSA KConfig on that architecture.

At DebConf25, I talked with some of the folks that maintain the RISC-V infrastructure for Debian, and the tentative plan that we'd sketched out was that we would enable the ROCm packages up to and including the HIP Runtime, but not the math libraries. This was because the RISC-V build machines available to Debian are not very powerful and they were worried about overwhelming buildd. The ROCm math libraries require a lot of system resources to compile, so we'll hold off on those until the Debian infrastructure can handle it.

With that said, there have been some legitimate concerns raised by some of my colleges about whether enabling these experimental host architectures for a handful of users might end up blocking updates for thousands of users on the upstream-supported amd64 architecture.

Sincerely,
Cory Bloor


Reply to: