AMD ROCm for Slackware
  • Shell 99.8%
  • Roff 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-12 13:05:23 -05:00
3rd Remove pybind11 as it is now included in the current tree 2026-04-02 11:29:48 +03:00
patches Update to ROCm 7.2.1 2026-03-27 17:59:51 +02:00
rocm Remove new line from read 2026-04-12 08:18:08 +03:00
BUILDORDER.md Added PyTorch 2.9 build script 2025-12-07 18:26:11 +02:00
fetch-sources.sh Fix broken submodule state after clean/deinit 2026-03-27 10:22:00 +02:00
LICENSE Initial commit 2025-11-19 14:09:18 +02:00
python-requirements Remove barectf, need manual build. Instruction in 3rd 2026-03-30 10:17:14 +03:00
README.md test commit from working clone 2026-10-12 13:05:23 -05:00
rocm-environment.sh Update to ROCm 7.2.4 2026-05-30 11:46:23 +03:00

AMD ROCm for Slackware

These scripts are used to build AMD ROCm version 7.x on Slackware 15 x86_64 current tree.

These are the scripts for version 7.2.4. Precompiled packages are available at my repository: ROCm for Slackware

  1. Install required packages

A few packages need to be installed, and all of them are required. They are located in the 3rd subdirectory.

  1. Create Python virtual environment
    python3 -m venv virtualenv
    source virtualenv/bin/activate
    pip3 install -r python-requirements

Fetching sources

Get the source codes using the fetch-sources.sh script. The main idea is to keep the source trees locally on your machine, so that with the next release you only fetch the deltas instead of downloading the entire trees again.

Follow the build order in file BUILDORDER.md

Note

The compilation process usually takes around 4 days if you build the composable kernel package. Without it, expect about 2.5 days, assuming no errors occur.

Packages that do not build

A few ROCm packages fail to compile for various reasons.

These packages are:

rocprofiler-systems

Note

Since the Slackware current tree is updated quite frequently, if a library stops working, it is sufficient to recompile only rocmprofile-register.

Allow overriding ROCM_BRANCH for custom builds

The upstream rocMLIR repository does not provide release tags for some versions due to lack of changes. Add support for overriding ROCM_BRANCH to allow building against custom branches or commits (e.g., ROCM_BRANCH=7.2.0).

ROCM_BRANCH=7.2.0 ./rocmlir.SlackBuild

Have fun and cheers, Condor

ROCm build notes