Repository navigation
results: XLA autotune vs Triton GEMM probe (job 342333) + doc corrections - #230
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Records the controlled A100 probe (RAL job 342333) behind PyAutoNerves#161 and corrects the docs that described
--xla_gpu_autotune_level=0as 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=falsealone 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 underJAX_COMPILATION_CACHE_DIRkeyed 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.mdoractivate.shfile 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 freshJAX_COMPILATION_CACHE_DIRper 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=falseamong 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.submit_breakdown_imaging_delaunay_a100_hst_fp64run reports "Curvature matrix (F)" under 6 ms with--xla_gpu_enable_triton_gemm=falseindevice.xla_flags.Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Jbzb2yHwJn5ScwqxngKPqi