This repository hosts a collection of Arch Linux PKGBUILDs for the AMD ROCm Platform. With Patched libraries for Polaris/GFX803 .
The Arch Linux packages for ROCm Polaris are available on the
AUR.
Since many packages will be installed, it is recommended to use an
AUR helper
like paru
.
Currently Only 2 Packages need patching to work with Polaris/GFX803 , which are the rocm-opencl-runtime and rocblas .
And the rocm-arch repository already patched rocm-opencl-runtime , leaving rocblas un-patched which means you will have to get it from here :
You have 2 options :
Option 1 :
the "bin" package re-packaged from Xuhuisheng ROCm repo . Which can be installed from the AUR , by using this command
paru -S rocblas-polaris-bin
Option 2 (Not tested) :
the source package . Which can be installed from the AUR , by using this command
paru -S rocblas-polaris
ROCm stack comprises around 50 packages including a fork of LLVM.
Therefore, building all packages from source can take a long time and can use a lot of RAM.
If you are experiencing the latter when building rocm-llvm
set the number of threads for its compilation via the environment variable NINJAFLAGS
,
export NINJAFLAGS="-jXX"
where XX
is the number of threads you would like to use.
To speed up compilation of application libraries like rocblas
or rocfft
export AMDGPU_TARGETS
and set it to the architecture name of your GPU. To find out this name, install rocminfo
,
paru -S rocminfo
and call
rocminfo | grep gfx
for VEGA 56/64 the output is
Name: gfx900
Name: amdgcn-amd-amdhsa--gfx900:xnack-
Hence, you have to set AMDGPU_TARGETS
to gfx900
,
export AMDGPU_TARGETS="gfx900"
For additional installation configuration, such as adding a user to the video
group, we refer to AMD's
installation guide.