Skip to content

results: XLA autotune vs Triton GEMM probe (job 342333) + doc corrections - #230

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/xla-triton-gemm-off
Sep 8, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/xla-triton-gemm-off

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Records the controlled A100 probe (RAL job 342333) behind PyAutoNerves#161 and corrects the docs that described --xla_gpu_autotune_level=0 as free of evaluation cost. With autotuning off, XLA lowers the dense fp64 curvature-matrix GEMM (15361×1560) to an un-tuned Triton kernel at 25.5 ms versus 4.8 ms for cuBLASLt; --xla_gpu_enable_triton_gemm=false alone restores cuBLAS with 0.07 s of compile and bit-identical results. The note also documents why the 2026-09-05 A/B appeared to stop reproducing: JAX persists XLA's per-fusion autotune cache under JAX_COMPILATION_CACHE_DIR keyed by fusion fingerprint, and RAL home is node-local, so one level-4 run seeded gpu-2 for every later level-0 run.

No existing hpc/batch_gpu/submit_*, hpc/README.md or activate.sh file is touched (those belong to #222).

Scripts Changed

  • scripts/misc/jax_compile/gemm_probe.py — new pure-jax five-arm GEMM probe (level 0 fresh, level 4 fresh, level 0 on the seeded cache, level 0 on its own cache, level 0 + --xla_gpu_enable_triton_gemm=false).
  • hpc/batch_gpu/submit_xla_autotune_gemm_probe — new SLURM submit script running the five arms on one A100 with a fresh JAX_COMPILATION_CACHE_DIR per arm and an HLO-lowering summary.
  • results/notes/xla_autotune_triton_gemm.md — new results note: job table, arms, per-arm timings, HLO evidence, mechanism, numerics, the A/B trap, cure.
  • README.md — "Settings suffice" bullet now lists --xla_gpu_enable_triton_gemm=false among the shipped defaults and links the note.
  • scripts/misc/jax_compile/README.md — amendment after the close-out scoping finding 7's "no evaluation penalty" and pointing at the note.
  • results/notes/delaunay_nn_breakdown.md — addendum to the "XLA GPU autotuning A/B" section explaining the seeded-cache confound; no rows or numbers changed.

Upstream PR

PyAutoLabs/PyAutoNerves#162

Test Plan

  • python -m py_compile scripts/misc/jax_compile/gemm_probe.py; bash -n hpc/batch_gpu/submit_xla_autotune_gemm_probe.
  • Smoke tests pass for the affected workspace (docs and a new HPC-only probe; no existing script changes).
  • After PyAutoNerves#161 merges and RAL syncs: fresh-cache submit_breakdown_imaging_delaunay_a100_hst_fp64 run reports "Curvature matrix (F)" under 6 ms with --xla_gpu_enable_triton_gemm=false in device.xla_flags.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Jbzb2yHwJn5ScwqxngKPqi

…ions (PyAutoNerves#161)

Add the pure-jax five-arm GEMM probe and its A100 submit script, and the
results note showing that --xla_gpu_autotune_level=0 lowers the fp64
curvature GEMM to an un-tuned Triton kernel (25.5 ms vs 4.8 ms cuBLAS),
that a level-4 run seeds the node-local per-fusion autotune cache so later
level-0 runs look fixed, and that --xla_gpu_enable_triton_gemm=false alone
restores cuBLAS. Correct the README "Settings suffice" bullet, amend the
jax_compile close-out, and add an addendum to the delaunay_nn_breakdown
autotune A/B section. No existing submit scripts touched.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jbzb2yHwJn5ScwqxngKPqi
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jbzb2yHwJn5ScwqxngKPqi
@Jammy2211
Jammy2211 merged commit fb532c0 into main Sep 8, 2026
1 check passed
@Jammy2211
Jammy2211 deleted the feature/xla-triton-gemm-off branch September 8, 2026 13:46
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
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