/rocm-arch

A collection of Arch Linux PKGBUILDS for the ROCm platform

Primary LanguageShell

ROCm for Arch Linux

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.

Installation

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.

Building from source

All important ROCm packages are in the official Arch Linux repositories. Here, we disucss how to build the few remaining packages in the AUR.

Common issues

Please consult this list first before opening an issue.

Package X does not work

Please first check if your GPU is supported by ROCm. A complete list is found in the official documentation

Package X does not build on OS Y

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>

hipcc errors with stack protector enabled

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.

OpenCL runtime for Polaris

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.

Discussions/Support/Issues

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.