Skip to content

Fix invalid scheduler construction in GPU peer-copy tests - #866

Open
jpsamaroo wants to merge 1 commit into
masterfrom
jps/fix-gpu-peer-scheduler-fixture
Open

jpsamaroo wants to merge 1 commit into
masterfrom
jps/fix-gpu-peer-scheduler-fixture

Conversation

@jpsamaroo

Copy link
Copy Markdown
Member

The two-device CUDA and ROCm peer-copy fixtures construct Dagger.GreedyScheduler(), which mainline does not define. This raises UndefVarError before their copy assertions run.

Use the existing RoundRobinScheduler policy through a shared fresh-instance factory, preserving both hardware guards, scopes and every copy assertion. Register the factory checks in ordinary CPU CI and include them before the GPU hardware gates.

Validation: Slurm job 1000008 completed with 5/5 source-bound before/after CPU assertions on Julia 1.13.4 in a credential-free, network-isolated sandbox. Both original constructor tuples fail as expected; the committed factory returns the supported scheduler type with fresh mutable state. git diff --check passes. Independent source and evidence review completed before publication.

This checks fixture construction only. Two-GPU copy/kernel execution and the broader vendor matrix remain unverified.

Written by an AI agent on jpsamaroo's review feedback.

Mainline has no GreedyScheduler, so evaluating the two-device CUDA/ROCm
fixture tuple raises UndefVarError before any peer-copy assertion runs. Keep
the existing RoundRobin policy and every copy check, without an optional-name
guard or an unrelated scheduler substitution. Share the fresh-instance factory
with a tiny CPU-registered test so ordinary CI detects invalid fixture
construction without two GPUs.

Validation: Slurm job1000008 on eos, 2 CPUs/4GiB, completed0:0 with5/5
source-bound before/after constructor assertions on Julia1.13.4. The inner
credential-free sandbox had read-only source/dependencies and no network.
Both actual baseline tuples raise UndefVarError; the committed factory has
the supported type and fresh scheduler state. No copy/kernel/two-GPU native
execution or performance result is claimed. git diff --check passes.

Written by an AI agent on jpsamaroo's review feedback.
@github-actions

github-actions Bot commented Dec 3, 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 0 0 3 1 4/4
Distributed 0 2 1 0 4/4
Distributed+Threads 0 0 2 1 4/4
MPI 0 2 5 2 4/4
MPI+Threads 0 2 9 1 4/4
Total 0 6 20 5 20/20

Regressions across all backends

None in the available results.

Improvements across all backends

Backend Benchmark Metric Change
MPI+Threads array/dagger/N=256 (block 128)/broadcast (X .+ 1) time -87.8%
MPI linalg/dagger/N=256 (block 128)/matvec (A*x) time -59.6%
MPI+Threads array/dagger/N=1024 (block 512)/map (sin.(X)) time -50.1%
Distributed sparse/dagger/N=256 (block 16)/cg solve (laplacian) memory -42.1%
Distributed sparse/dagger/N=256 (block 16)/cg solve (laplacian) allocs -37.3%
MPI linalg/dagger/N=1024 (block 512)/solve (A\b via lu) time -36.9%
Threads (1 process × 4 threads) — 0 regressions, 0 improvements
Suite Regressions Improvements Within noise Inconclusive metrics
array 0 0 2 0
linalg 0 0 0 0
sparse 0 0 0 0
stencil 0 0 1 1

Within noise

Benchmark Metric Change
stencil/dagger/N=256 (block 128)/neighbors (Pad) time +45.3%
array/dagger/N=256 (block 256)/broadcast (X .+ 1) time +43.8%
array/dagger/N=1024 (block 128)/map (sin.(X)) time +25.2%

Inconclusive metric changes

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

Improvements

Benchmark Metric Change
sparse/dagger/N=256 (block 16)/cg solve (laplacian) memory -42.1%
sparse/dagger/N=256 (block 16)/cg solve (laplacian) allocs -37.3%

Within noise

Benchmark Metric Change
array/dagger/N=1024 (block 512)/alloc (rand) time +48.6%
Distributed+Threads (2 processes × 2 threads) — 0 regressions, 0 improvements
Suite Regressions Improvements Within noise Inconclusive metrics
array 0 0 2 1
linalg 0 0 0 0
sparse 0 0 0 0
stencil 0 0 0 0

Within noise

Benchmark Metric Change
array/dagger/N=256 (block 256)/norm time +59.3%
array/dagger/N=256 (block 256)/broadcast (X .+ 1) time +47.4%

Inconclusive metric changes

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

Improvements

Benchmark Metric Change
linalg/dagger/N=256 (block 128)/matvec (A*x) time -59.6%
linalg/dagger/N=1024 (block 512)/solve (A\b via lu) time -36.9%

Within noise

Benchmark Metric Change
array/dagger/N=1024 (block 128)/transpose (permutedims) time +85.1%
linalg/dagger/N=1024 (block 512)/syrk (A'*A) time +59.7%
stencil/dagger/N=1024 (block 128)/neighbors (Clamp) time +48.4%
stencil/dagger/N=1024 (block 128)/update (+) time -44.3%
linalg/dagger/N=1024 (block 512)/matvec (A*x) time -44.5%

Inconclusive metric changes

Benchmark Metric Change
stencil/dagger/N=1024 (block 128)/alloc (neighbors Wrap) time +70.1%
linalg/dagger/N=1024 (block 512)/cholesky time +43.3%
MPI+Threads (2 ranks × 2 threads) — 0 regressions, 2 improvements
Suite Regressions Improvements Within noise Inconclusive metrics
array 0 2 1 0
linalg 0 0 1 0
sparse 0 0 0 0
stencil 0 0 7 1

Improvements

Benchmark Metric Change
array/dagger/N=256 (block 128)/broadcast (X .+ 1) time -87.8%
array/dagger/N=1024 (block 512)/map (sin.(X)) time -50.1%

Within noise

Benchmark Metric Change
stencil/dagger/N=256 (block 128)/update (+) time +230.8%
stencil/dagger/N=1024 (block 512)/assign (const) time +119.2%
array/dagger/N=1024 (block 512)/norm time +74.3%
stencil/dagger/N=1024 (block 512)/neighbors (Clamp) time +43.2%
stencil/dagger/N=256 (block 256)/neighbors (Clamp) time +42.0%
stencil/dagger/N=1024 (block 512)/alloc (neighbors Wrap) time +36.8%
stencil/dagger/N=256 (block 128)/neighbors (Wrap) time +36.3%
linalg/dagger/N=256 (block 128)/matmul (A*A) time -41.6%
stencil/dagger/N=1024 (block 512)/neighbors (Pad) time -45.8%

Inconclusive metric changes

Benchmark Metric Change
stencil/dagger/N=256 (block 256)/alloc (neighbors Wrap) time +43.6%

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