Files
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00
..

run_amdsmi_build.py

One-shot AMDSMI build → package → install → verify runner. Auto-detects your distro, installs prerequisites, and exits non-zero on any failure.

Used by .github/workflows/amdsmi-build.yml in CI; also runnable locally.

Usage

Run as root (or via sudo) — the build/install/ldconfig stages require it:

sudo python3 projects/amdsmi/tests/amdsmi_build/run_amdsmi_build.py

The script auto-detects the distro from /etc/os-release. To force settings (e.g. in CI), pass them explicitly:

sudo python3 projects/amdsmi/tests/amdsmi_build/run_amdsmi_build.py \
    --os-label Ubuntu22 \
    --package-manager apt \
    --package-format deb

Output

Path Contents
--log-dir (default logs/amdsmi/) Per-step command logs
--test-results-dir (default /tmp/test-results-<os-label>/) build_result.txt, install_result.txt, verify_wheel_result.txt consumed by the CI summary

Features

Flag What it does
(no flags) Autodetect distro, build, package, install, verify
--no-autodetect Disable /etc/os-release parsing
--skip-build Reuse existing build/ directory
--skip-install Build + package only
--build-type Release|Debug CMake build type
--jobs N Parallel build jobs
--retries N Retry transient steps
--log-dir DIR Per-step log destination
--test-results-dir DIR Result-file destination
--os-label LABEL Override label in result paths
--package-manager apt|dnf|zypper Force package manager
--package-format deb|rpm Force package format
--qa-rpaths RHEL 10 / AlmaLinux 8 RPM builds
--debian10-sources Rewrite apt sources for archived Debian 10
--skip-setuptools-upgrade Skip pip/setuptools/wheel upgrade
--install-more-itertools Install more_itertools (AzureLinux 3)
summarize <results-dir> (subcommand) Render the CI step summary

Supported distros

Ubuntu 20 / 22 / 24 · Debian 10 · RHEL 8 / 9 / 10 · AlmaLinux 8 · AzureLinux 3 · SLES 15.x

Run with --help for the full flag list.