Skip to content

ci: linux-x64-rocm (HIP) backend build AMD support#49

Merged
worthant merged 4 commits into
devfrom
feat/rocm-linux-build
Jul 24, 2026
Merged

ci: linux-x64-rocm (HIP) backend build AMD support#49
worthant merged 4 commits into
devfrom
feat/rocm-linux-build

Conversation

@worthant

Copy link
Copy Markdown
Member

First milestone of AMD/ROCm support: a CI job that builds a self-contained libggml-hip.so archive. No AMD GPU needed to compile — the backend is a dlopen'd plugin (GGML_BACKEND_DL).

What it does

  • Installs ROCm 7.2.1 from repo.radeon.com (matches upstream's release job).
  • Builds -DGGML_HIP=ON -DGGML_HIP_ROCWMMA_FATTN=ON for RDNA targets only: gfx1030 (RDNA2), gfx1100/1101/1102 (RDNA3), gfx1151 (RDNA 3.5 / Strix Halo), gfx1200/1201 (RDNA4). GCN/CDNA excluded by scope — those users use the Vulkan backend.
  • Bundles the HIP runtime + rocBLAS/hipBLASLt Tensile data so the archive runs on a box with only the amdgpu driver, like the CUDA archive bundles cudart.
  • Wires the job into dev-latest publish (and fixes the EXPECTED list, which was missing linux-x64-cuda-13.3).

Why this is safe / small

The TurboQuant kernels are already RDNA-aware (mmvq-tq.cu forks dp4a/sudot4). This PR is pure CI — no source changes.

Not in this PR (next milestones)

  • M2: real-hardware validation — test-backend-ops on gfx1151/gfx1100 (rented HostKey RDNA3/4 or a Strix Halo box). This is where wavefront-width and rocWMMA-FA correctness get proven.
  • M3: Windows ROCm + release-turboquant.yml integration.

The PR build here compiles the job (PRs into dev build everything, publish nothing), so a green check = ROCm backend compiles for all RDNA targets. Full reference: atomic-forge/docs/ROCM-HIP.md.

worthant added 3 commits July 24, 2026 17:32
Promote dev to master: sched split-input fix for Gemma 4 E-series
M1 of AMD support. Adds a ROCm build job to the dev pipeline modeled on
upstream's ubuntu-22-rocm and our linux-x64-cuda job: installs ROCm
7.2.1 from repo.radeon.com, builds with GGML_HIP + rocWMMA flash-attn
for RDNA targets only (gfx1030/1100/1101/1102/1151/1200/1201 — GCN/CDNA
excluded by scope, those users use Vulkan), bundles libggml-hip.so plus
the HIP runtime and rocBLAS/hipBLASLt Tensile data so the archive is
self-contained. Build-only: no AMD GPU on the runner, the backend is a
dlopen'd plugin (GGML_BACKEND_DL). Also adds the pre-existing
linux-x64-cuda-13.3 to the dev-latest EXPECTED list (was missing).

Kernels are already RDNA-aware (mmvq-tq.cu). Real-hardware validation
(test-backend-ops on gfx1151/gfx1100) is the next milestone.
@worthant worthant changed the title ci: linux-x64-rocm (HIP) backend build — AMD support M1 ci: linux-x64-rocm (HIP) backend build AMD support Jul 24, 2026
dev-build.yml alone only puts ROCm in dev-latest; add the same job to
release-turboquant.yml (needs: verify-version) and to publish-release's
needs list so tagged releases carry llama-turboquant-linux-x64-rocm.
Same recipe as the dev-build job — RDNA-only gfx targets, HIP runtime +
Tensile data bundled.
@worthant
worthant merged commit 8becbf0 into dev Jul 24, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant