This repository hosts a collection of Arch Linux
PKGBUILDs for the
AMD ROCm Platform.
A great portion of the stack is part of the official [extra]
repository,
including all packages needed for Machine Learning.
To install ROCm, use
pacman -S rocm-hip-sdk rocm-opencl-sdk
which includes the low-level components and compilers, utilities like rocminfo
and GPU-accelerated math libraries. See the
documentation
for an overview on the available meta packages.
All important ROCm packages are in the official Arch Linux repositories. Here, we disucss how to build the few remaining packages in the AUR.
Please consult this list first before opening an issue.
Please first check if your GPU is supported by ROCm. A complete list is found in the official documentation
We only support Arch Linux. If a package does not build, first consider building in a
clean chroot.
The AUR wrapper paru
supports building in clean chroot. Call
paru --chroot
and follow the instructions. Afterward, you can build packages in a clean chroot by calling
paru --chroot -S <PACKAGE NAME>
Some commonly used compiler flags are unsupported by clang
(and thus hipcc
) from rocm-llvm
,
including stack protection,
-fstack-protector-all
-fstack-protector-strong
-fstack-protector
See the official documentation for a full list.
To enable OpenCL support on Polaris GPUs (gfx800s) set
ROC_ENABLE_PRE_VEGA=1
as an environment variable.
For more helpful tips see the ArchWiki entry on ROCm, here.
For general concerns/comments/support we use Discussions. If you have issues specific to your setup or are having difficulties getting something to work, feel free to post there.
Use the issue tracker to report problems with the AUR packages. Use the official bugtracker for the offical binary packages.