Repository navigation
Treat contradictory allocation confirmation as inconclusive - #858
Conversation
…ation A reversed-order run already triggered by timing can explicitly reverse an allocation finding. The old helper retained every initial allocation result even when that repeat crossed the opposite threshold, so the report could still gate on contradicted evidence. Preserve standalone allocation gates, missing or neutral repeats, consistent regressions, thresholds, advisory pairing and the timing-only repeat trigger. Move only explicit allocs/memory direction conflicts into the existing inconclusive list, and show them accurately in CPU/GPU reports alongside the reversed allocation table. On Julia 1.10.11 and 1.13.4 the comparator suite passes 93 assertions; the old helper with the same regression tests gives 90 passes and 3 failures. Replaying the saved #850 allocation scalars (1.37155 initial versus 0.73257 reversed, two actual trial samples each) gives 5 passes/2 failures before and 7/7 after. CPU and GPU renderer suites plus comment tests pass; no benchmarks or hosted CI were rerun, and no intrinsic allocation parity is claimed. Written by an AI agent on jpsamaroo's review feedback.
Dagger benchmarks:
|
| Backend | Regressions | Improvements | Within noise | Inconclusive metrics | Suites |
|---|---|---|---|---|---|
| Threads | 0 | 2 | 15 | 2 | 4/4 |
| Distributed | 2 | 0 | 1 | 0 | 4/4 |
| Distributed+Threads | 0 | 1 | 0 | 0 | 4/4 |
| MPI | 0 | 0 | 1 | 2 | 4/4 |
| MPI+Threads | 1 | 1 | 19 | 1 | 4/4 |
| Total | 3 | 4 | 36 | 5 | 20/20 |
Regressions across all backends
| Backend | Benchmark | Metric | Change |
|---|---|---|---|
| MPI+Threads | stencil/dagger/N=1024 (block 128)/assign (const) |
time | +84.4% |
| Distributed | sparse/dagger/N=256 (block 16)/spgemm (S*S) |
memory | +47.1% |
| Distributed | sparse/dagger/N=256 (block 16)/spgemm (S*S) |
allocs | +42.7% |
Improvements across all backends
| Backend | Benchmark | Metric | Change |
|---|---|---|---|
| Threads | array/dagger/N=1024 (block 512)/alloc (rand) |
time | -42.7% |
| MPI+Threads | linalg/dagger/N=1024 (block 128)/matvec (A*x) |
time | -41.6% |
| Threads | array/dagger/N=256 (block 128)/broadcast (X .+ 1) |
time | -38.2% |
| Distributed+Threads | stencil/dagger/N=1024 (block 512)/neighbors (Pad) |
time | -36.3% |
Threads (1 process × 4 threads) — 0 regressions, 2 improvements
| Suite | Regressions | Improvements | Within noise | Inconclusive metrics |
|---|---|---|---|---|
| array | 0 | 2 | 5 | 1 |
| linalg | 0 | 0 | 7 | 1 |
| sparse | 0 | 0 | 0 | 0 |
| stencil | 0 | 0 | 3 | 0 |
Improvements
| Benchmark | Metric | Change |
|---|---|---|
array/dagger/N=1024 (block 512)/alloc (rand) |
time | -42.7% |
array/dagger/N=256 (block 128)/broadcast (X .+ 1) |
time | -38.2% |
Within noise
| Benchmark | Metric | Change |
|---|---|---|
array/dagger/N=256 (block 128)/reduce (sum) |
time | +214.6% |
linalg/dagger/N=256 (block 128)/matvec (A*x) |
time | +129.8% |
stencil/dagger/N=1024 (block 512)/multi-expr |
time | +124.5% |
linalg/dagger/N=256 (block 256)/solve (A\b via lu) |
time | +62.6% |
linalg/dagger/N=256 (block 256)/matmul (A*A) |
time | +48.3% |
array/dagger/N=1024 (block 512)/broadcast (X .+ 1) |
time | +44.5% |
array/dagger/N=1024 (block 128)/norm |
time | +41.7% |
linalg/dagger/N=256 (block 128)/matmul (A*A) |
time | +40.5% |
array/dagger/N=256 (block 256)/norm |
time | +37.4% |
linalg/dagger/N=256 (block 128)/lu |
time | +26.5% |
array/dagger/N=1024 (block 512)/reduce (sum) |
time | -26.5% |
stencil/dagger/N=1024 (block 128)/neighbors (Reflect) |
time | -27.0% |
linalg/dagger/N=256 (block 256)/qr |
time | -37.4% |
linalg/dagger/N=256 (block 256)/lu |
time | -55.1% |
stencil/dagger/N=256 (block 128)/neighbors (Pad) |
time | -61.5% |
Inconclusive metric changes
| Benchmark | Metric | Change |
|---|---|---|
linalg/dagger/N=256 (block 128)/syrk (A'*A) |
time | +166.2% |
array/dagger/N=1024 (block 128)/broadcast (X .+ 1) |
time | +56.3% |
Distributed (4 processes × 1 thread) — 2 regressions, 0 improvements
| Suite | Regressions | Improvements | Within noise | Inconclusive metrics |
|---|---|---|---|---|
| array | 0 | 0 | 0 | 0 |
| linalg | 0 | 0 | 0 | 0 |
| sparse | 2 | 0 | 0 | 0 |
| stencil | 0 | 0 | 1 | 0 |
Regressions
| Benchmark | Metric | Change |
|---|---|---|
sparse/dagger/N=256 (block 16)/spgemm (S*S) |
memory | +47.1% |
sparse/dagger/N=256 (block 16)/spgemm (S*S) |
allocs | +42.7% |
Within noise
| Benchmark | Metric | Change |
|---|---|---|
stencil/dagger/N=256 (block 128)/neighbors (Pad) |
time | +41.3% |
Distributed+Threads (2 processes × 2 threads) — 0 regressions, 1 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 | 1 | 0 | 0 |
Improvements
| Benchmark | Metric | Change |
|---|---|---|
stencil/dagger/N=1024 (block 512)/neighbors (Pad) |
time | -36.3% |
MPI (4 ranks × 1 thread) — 0 regressions, 0 improvements
| Suite | Regressions | Improvements | Within noise | Inconclusive metrics |
|---|---|---|---|---|
| array | 0 | 0 | 1 | 1 |
| linalg | 0 | 0 | 0 | 1 |
| sparse | 0 | 0 | 0 | 0 |
| stencil | 0 | 0 | 0 | 0 |
Within noise
| Benchmark | Metric | Change |
|---|---|---|
array/dagger/N=256 (block 128)/transpose (permutedims) |
time | -64.0% |
Inconclusive metric changes
| Benchmark | Metric | Change |
|---|---|---|
array/dagger/N=256 (block 128)/alloc (rand) |
time | +201.7% |
linalg/dagger/N=256 (block 128)/cholesky |
time | +184.6% |
MPI+Threads (2 ranks × 2 threads) — 1 regressions, 1 improvements
| Suite | Regressions | Improvements | Within noise | Inconclusive metrics |
|---|---|---|---|---|
| array | 0 | 0 | 9 | 0 |
| linalg | 0 | 1 | 2 | 0 |
| sparse | 0 | 0 | 0 | 0 |
| stencil | 1 | 0 | 8 | 1 |
Regressions
| Benchmark | Metric | Change |
|---|---|---|
stencil/dagger/N=1024 (block 128)/assign (const) |
time | +84.4% |
Improvements
| Benchmark | Metric | Change |
|---|---|---|
linalg/dagger/N=1024 (block 128)/matvec (A*x) |
time | -41.6% |
Within noise
| Benchmark | Metric | Change |
|---|---|---|
stencil/dagger/N=256 (block 128)/assign (const) |
time | +121.5% |
stencil/dagger/N=256 (block 128)/update (+) |
time | +107.7% |
array/dagger/N=256 (block 256)/broadcast (X .+ 1) |
time | +105.4% |
stencil/dagger/N=256 (block 256)/assign (const) |
time | +95.1% |
stencil/dagger/N=256 (block 128)/neighbors (Clamp) |
time | +82.5% |
array/dagger/N=256 (block 128)/map (sin.(X)) |
time | +75.7% |
array/dagger/N=1024 (block 512)/broadcast (X .+ 1) |
time | +67.3% |
stencil/dagger/N=256 (block 128)/neighbors (Reflect) |
time | +56.6% |
stencil/dagger/N=1024 (block 512)/neighbors (Pad) |
time | +43.1% |
stencil/dagger/N=1024 (block 128)/neighbors (Wrap) |
time | +36.2% |
array/dagger/N=1024 (block 512)/alloc (rand) |
time | -37.6% |
array/dagger/N=1024 (block 512)/reduce (sum) |
time | -38.5% |
array/dagger/N=1024 (block 512)/norm |
time | -40.0% |
array/dagger/N=256 (block 128)/broadcast (X .+ 1) |
time | -43.3% |
linalg/dagger/N=256 (block 128)/matvec (A*x) |
time | -45.8% |
array/dagger/N=256 (block 128)/add (X + X) |
time | -48.7% |
stencil/dagger/N=1024 (block 512)/assign (const) |
time | -53.7% |
array/dagger/N=256 (block 256)/transpose (permutedims) |
time | -53.7% |
linalg/dagger/N=256 (block 128)/matmul (A*A) |
time | -55.3% |
Inconclusive metric changes
| Benchmark | Metric | Change |
|---|---|---|
stencil/dagger/N=1024 (block 512)/update (+) |
time | +219.9% |
Full results and plots (download the benchmark-results-* artifacts).
Published by Codex from this head’s completed 20-suite benchmark artifacts. The combined benchmark report finished successfully; automatic comment publication is waiting for unrelated macOS CI jobs because it currently triggers only after the entire CI workflow completes. This comment does not mark the remaining CI checks as passed.
When a reversed-order benchmark run already exists, the comparison helper keeps the initial allocation result even if that repeat crosses the opposite threshold. For example, #850 recorded allocation-count ratios of 1.37155 initially and 0.73257 in the existing repeat, yet the initial regression still gated the job.
Classify explicit conflicts for the same benchmark and allocation metric as inconclusive, for both regressions and improvements. Preserve the standalone allocation gates, neutral or missing repeat results, consistent regressions, thresholds, advisory pairing, raw artifacts, and timing-only trigger for the second run. Update CPU/GPU report labels and show the reversed allocation table so the conflicting evidence stays visible.
Validation: comparator tests pass 93/93 on Julia 1.10.11 and 1.13.4; the previous helper with the added tests gives 90 passes/3 failures. Replaying the saved #850 allocation scalars gives 5 passes/2 failures before and 7/7 after. CPU renderer, GPU renderer and comment tests pass, and the CI driver parses. No benchmark workloads or hosted jobs were rerun; this does not establish intrinsic allocation parity or change #850's existing job status.
Written by an AI agent on jpsamaroo's review feedback. The exact patch and retained evidence were independently reviewed before publication.