Skip to content
Maksim Levental edited this page Aug 28, 2024 · 11 revisions

Getting started

amdgpu-dkms

Install amdgpu-dkms following here but only do

sudo apt install amdgpu-dkms

If it worked then you should be able to do

svcnod@sharkbox1:~$ cat /sys/devices/virtual/kfd/kfd/topology/nodes/0/properties 

and

svcnod@sharkbox1:~$ cat /sys/devices/virtual/kfd/kfd/topology/nodes/1/properties 

DON'T FORGET TO sudo usermod -a -G render,video $LOGNAME for whichever user needs to have access to the kfd.

If you see

rocr::core::Shared<T, rocr::core::PageAllocator<T> >::Shared(int, int) [with T = rocr::core::SharedQueue]: Assertion `allocate_ != nullptr && free_ != nullptr && "Shared object allocator is not set"' failed.

then you either forgot to do the usermod above or it hasn't stuck yet - just reboot.

ROCT-Thunk-Interface

The right branch of ROCT-Thunk-Interface is rocm-6.2.x, i.e., https://github.com/ROCm/ROCT-Thunk-Interface/tree/rocm-6.2.x .

ROCR-Runtime

TBD

Clang

To build from source you're going to need clang-19 (well currently that's what I've patched/hacked in). Easiest way to get it is using https://apt.llvm.org:

wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 19
sudo apt install libclang-dev
Clone this wiki locally