Add numactl, rocm, amdgpu-pro and README

This commit is contained in:
2026-02-09 10:52:11 -04:00
commit 94e69cedc0
16 changed files with 26421 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
ac3667fdeedd1def31c3b88fb422fcbebb4bd6420a795e6c1660f158a561f6c7 70-rocm.rules
9b21184f13f245b038e291159535fd15d61d2561b1a9524651ac9cd39a907c0b rocm-installer_1.2.5.70200-25-43~22.04.run
1e6dfe365aae6c9dec4e69a94a040b19761279bdfad4a613357700956a5b76ed rocm.sh
+26174
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -0,0 +1,3 @@
# ROCm / AMD GPU - device access for compute (kfd) and render node
KERNEL=="kfd", SUBSYSTEM=="kfd", GROUP="render", MODE="0660"
KERNEL=="render", SUBSYSTEM=="drm", GROUP="render", MODE="0660"
+2
View File
@@ -0,0 +1,2 @@
numactl
eudev
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
getent group render >/dev/null || groupadd render
+6
View File
@@ -0,0 +1,6 @@
# ROCm environment - source from /etc/profile.d/rocm.sh
export ROCM_PATH=/opt/rocm
export PATH="$ROCM_PATH/bin:$PATH"
export LD_LIBRARY_PATH="$ROCM_PATH/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
export HIP_PLATFORM=amd
export HIP_VISIBLE_DEVICES=0
+29
View File
@@ -0,0 +1,29 @@
description="AMD ROCm platform (HIP, runtimes, tools)"
homepage="https://rocm.docs.amd.com/"
maintainer="Fraggle, fraggle at disroot dot org"
name=rocm
version=7.2
release=1
source="rocm-installer_1.2.5.70200-25-43~22.04.run::https://repo.radeon.com/rocm/installer/rocm-runfile-installer/rocm-rel-7.2/ubuntu/22.04/rocm-installer_1.2.5.70200-25-43~22.04.run
rocm.sh
70-rocm.rules"
noextract="rocm-installer_1.2.5.70200-25-43~22.04.run"
build() {
mkdir -p $PKG/opt
echo "==> Extracting ROCm runfile (this may take several minutes)..."
bash "$SRC"/rocm-installer_*.run untar "$PKG/opt"
rocmdir=$(ls -d $PKG/opt/rocm-* 2>/dev/null | head -1)
if [ -z "$rocmdir" ]; then
echo "ERROR: ROCm extraction did not produce rocm-* directory" >&2
exit 1
fi
mv "$rocmdir" $PKG/opt/rocm
# Environment for new shells
install -Dm644 $SRC/rocm.sh $PKG/etc/profile.d/rocm.sh
# udev rules for GPU access (kfd, render)
install -Dm644 $SRC/70-rocm.rules $PKG/etc/udev/rules.d/70-rocm.rules
}