Skip to content

Select compatible external ROCm compiler versions in GPU tests - #862

Open
jpsamaroo wants to merge 1 commit into
masterfrom
fix/rocm-external-compiler-pair
Open

jpsamaroo wants to merge 1 commit into
masterfrom
fix/rocm-external-compiler-pair

Conversation

@jpsamaroo

Copy link
Copy Markdown
Member

GPUCompiler 1.22.7 does not select the external GCN backend even when its JLL is loaded. GPUCompiler 1.23.0 uses the LLVM 22 backend's llc executable, while the LLVM 23 JLL exposes a different library API. Request the compatible GPUCompiler 1.23.0 / AMDGPU_LLVM_Backend_jll 22.1.8+2 pair in plain ROCm optional-package setup, the ROCm MPI environment and its Buildkite setup command. Existing worker imports load the backend JLL before AMDGPU.

On EOS gfx1030 with AMDGPU 2.7, the unchanged original mixed-boundary kernel passes with this pair. The unchanged 34-field metadata observer reports helper coordinates 1, 2, versus the old configuration's incorrect 2, 3. Both versions changed together; this identifies a working configuration without attributing the result to a particular compiler pass.

Targeted numerical validation on Julia 1.11.9:

  • AMDGPU 2.7: original kernel and metadata observer; boundary helpers 64/64; registered stencil 61/61 on one GPU and 61/61 on each of two MPI ranks. The registered scope includes its existing 3D tuple-distance case.
  • AMDGPU 2.1: original registered Arrays 6/6 and KernelAbstractions Float32 fill/copy 5/5 with three lazily connected Distributed workers. All four processes recorded the actual external backend, device, package/artifact paths, bounds checks and CI coverage flags. The strict control exited naturally with no signals, forced cleanup or remaining owned processes.

Both actual setup frontends also completed with natural exit 0. Their resolved graphs, selected sources and artifact identities were independently audited:

  • Plain: the actual Pkg.test sandbox and optional-package branch resolved 291 entries. All packages in the 135-entry numerical control are present; common registered entries match, with only local Dagger/TimespanLogging path aliases among complete common-entry differences. The other 156 entries received setup validation.
  • MPI: the exact develop → add → instantiate setup resolved 127 entries. Compared with the 126-entry numerical control, it adds Krylov 0.10.12, updates XML2_jll 2.15.5 → 2.15.6 and changes local Dagger/TimespanLogging paths. AMDGPU, GPUCompiler, the backend JLL, MPI and MPICH entries match. Numerical tests ran in the targeted 126-entry control; the exact 127-entry frontend closure received setup validation.

The setup smokes used a frozen registry and stopped before GPU tests. The local numerical MPI harness needed its rank library-path priority restored for this host's ROCm 7.2 C++ dependency; that local harness repair is outside this patch. Four MPI progress warnings preceded the completed stencil results, and AMDGPU 2.1 emitted two compiler API deprecation warnings. An earlier 2.1 control passed its 11 assertions but needed local bwrap cleanup and remains a failed clean-exit control; the strict repetition above passed without cleanup. Full GPU suites and current Buildkite 2596 ROCm status remain unverified.

AI assistance: Codex prepared this change and the diagnostic controls. Feedback from other Codex agents was checked against source and recorded outcomes.

GPUCompiler 1.22 does not select the external GCN backend. Version 1.23
uses the LLVM 22 llc interface, while the LLVM 23 backend JLL exports a
different library API. Request GPUCompiler 1.23.0 together with
AMDGPU_LLVM_Backend_jll 22.1.8+2 in plain and MPI ROCm test setup.

The existing per-worker JLL imports then select the tested external
backend. Record the supported pairing and its numerical evidence in
the compiler-selection lesson.
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Dagger benchmarks: dirty vs master

Counts are benchmark metrics (time, allocations, bytes). Timing changes require non-overlapping median ± IQR bands; both revisions need at least five timed samples, and timing regressions need an independent confirmation run. Allocation changes explicitly contradicted by that existing repeat are inconclusive; missing or neutral repeats retain the original allocation gate.

Backend Regressions Improvements Within noise Inconclusive metrics Suites
Threads 1 0 12 1 4/4
Distributed 1 0 0 3 4/4
Distributed+Threads 0 0 0 1 4/4
MPI 0 2 1 0 4/4
MPI+Threads 0 3 14 1 4/4
Total 2 5 27 6 20/20

Regressions across all backends

Backend Benchmark Metric Change
Distributed stencil/dagger/N=256 (block 128)/neighbors (Clamp) time +46.9%
Threads stencil/dagger/N=256 (block 128)/neighbors (Reflect) time +33.3%

Improvements across all backends

Backend Benchmark Metric Change
MPI array/dagger/N=1024 (block 512)/transpose (permutedims) time -74.7%
MPI+Threads stencil/dagger/N=256 (block 256)/alloc (neighbors Wrap) time -58.7%
MPI linalg/dagger/N=1024 (block 128)/matvec (A*x) time -49.0%
MPI+Threads linalg/dagger/N=256 (block 128)/syrk (A'*A) time -46.7%
MPI+Threads stencil/dagger/N=1024 (block 512)/neighbors (Clamp) time -35.8%
Threads (1 process × 4 threads) — 1 regressions, 0 improvements
Suite Regressions Improvements Within noise Inconclusive metrics
array 0 0 3 0
linalg 0 0 5 0
sparse 0 0 0 0
stencil 1 0 4 1

Regressions

Benchmark Metric Change
stencil/dagger/N=256 (block 128)/neighbors (Reflect) time +33.3%

Within noise

Benchmark Metric Change
array/dagger/N=256 (block 128)/transpose (permutedims) time +70.6%
linalg/dagger/N=256 (block 256)/matvec (A*x) time +63.7%
stencil/dagger/N=256 (block 128)/multi-expr time +63.0%
stencil/dagger/N=1024 (block 128)/assign (const) time +39.9%
linalg/dagger/N=256 (block 128)/qr time +33.4%
linalg/dagger/N=256 (block 256)/matmul (A*A) time +28.3%
array/dagger/N=1024 (block 512)/norm time +26.9%
stencil/dagger/N=256 (block 128)/assign (const) time -26.3%
linalg/dagger/N=256 (block 128)/lu time -30.5%
stencil/dagger/N=1024 (block 128)/update (+) time -33.4%
linalg/dagger/N=256 (block 128)/syrk (A'*A) time -36.5%
array/dagger/N=256 (block 128)/add (X + X) time -49.2%

Inconclusive metric changes

Benchmark Metric Change
stencil/dagger/N=256 (block 128)/neighbors (Clamp) time +25.1%
Distributed (4 processes × 1 thread) — 1 regressions, 0 improvements
Suite Regressions Improvements Within noise Inconclusive metrics
array 0 0 0 0
linalg 0 0 0 0
sparse 0 0 0 1
stencil 1 0 0 2

Regressions

Benchmark Metric Change
stencil/dagger/N=256 (block 128)/neighbors (Clamp) time +46.9%

Inconclusive metric changes

Benchmark Metric Change
sparse/dagger/N=256 (block 16)/cg solve (laplacian) time +125.2%
stencil/dagger/N=256 (block 128)/neighbors (Wrap) time +50.5%
stencil/dagger/N=1024 (block 512)/multi-expr time +41.0%
Distributed+Threads (2 processes × 2 threads) — 0 regressions, 0 improvements
Suite Regressions Improvements Within noise Inconclusive metrics
array 0 0 0 0
linalg 0 0 0 0
sparse 0 0 0 0
stencil 0 0 0 1

Inconclusive metric changes

Benchmark Metric Change
stencil/dagger/N=1024 (block 512)/neighbors (Clamp) time +43.3%
MPI (4 ranks × 1 thread) — 0 regressions, 2 improvements
Suite Regressions Improvements Within noise Inconclusive metrics
array 0 1 1 0
linalg 0 1 0 0
sparse 0 0 0 0
stencil 0 0 0 0

Improvements

Benchmark Metric Change
array/dagger/N=1024 (block 512)/transpose (permutedims) time -74.7%
linalg/dagger/N=1024 (block 128)/matvec (A*x) time -49.0%

Within noise

Benchmark Metric Change
array/dagger/N=1024 (block 512)/alloc (rand) time -58.5%
MPI+Threads (2 ranks × 2 threads) — 0 regressions, 3 improvements
Suite Regressions Improvements Within noise Inconclusive metrics
array 0 0 5 0
linalg 0 1 3 0
sparse 0 0 0 1
stencil 0 2 6 0

Improvements

Benchmark Metric Change
stencil/dagger/N=256 (block 256)/alloc (neighbors Wrap) time -58.7%
linalg/dagger/N=256 (block 128)/syrk (A'*A) time -46.7%
stencil/dagger/N=1024 (block 512)/neighbors (Clamp) time -35.8%

Within noise

Benchmark Metric Change
linalg/dagger/N=1024 (block 512)/matvec (A*x) time +185.4%
stencil/dagger/N=256 (block 128)/neighbors (Wrap) time +132.3%
array/dagger/N=256 (block 256)/broadcast (X .+ 1) time +83.8%
array/dagger/N=256 (block 128)/reduce (sum) time +78.0%
array/dagger/N=1024 (block 512)/alloc (rand) time +60.2%
stencil/dagger/N=256 (block 128)/multi-expr time +58.2%
linalg/dagger/N=256 (block 128)/matvec (A*x) time +55.9%
stencil/dagger/N=1024 (block 128)/update (+) time +51.1%
stencil/dagger/N=256 (block 128)/neighbors (Reflect) time +46.5%
linalg/dagger/N=1024 (block 512)/lu time +43.0%
stencil/dagger/N=1024 (block 512)/assign (const) time -39.5%
stencil/dagger/N=256 (block 128)/assign (const) time -56.2%
array/dagger/N=256 (block 128)/broadcast (X .+ 1) time -66.0%
array/dagger/N=1024 (block 512)/norm time -68.2%

Inconclusive metric changes

Benchmark Metric Change
sparse/dagger/N=256 (block 16)/spgemm (S*S) time +48.9%

Full results and plots (download the benchmark-results-* artifacts).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant