I benchmark GPU kernels and write up what the measurements actually show. The posts here are experiments on real hardware, including NVIDIA L4 and T4 and AMD MI300X, down to the PTX, SASS, and hardware-counter level.
-
August 2026
FP8 on Ada with cuda-oxide, checked on real silicon
cuda-oxide lets you write GPU kernels in Rust. Its FP8 support for Ada (sm_89) was largely auto-generated, so I checked it on a real L4: FP8 conversions and the full m16n8k16 tensor-core MMA family, verified numerically correct against CPU references, with clean PTX. Generated is not the same as verified, so this fills in that gap. 1 figure.
-
August 2026
A cliff below the cache: why a softmax slows down before it should
A follow-up to the softmax study. On the L4, the bandwidth cliff arrives at ~27 MB, below the 48 MB cache. Why? I guessed multi-pass reuse and was wrong: re-reading one small row costs almost no extra time (confirmed in the PTX). The real cause is that input and output share the cache, so a read-only kernel cliffs at ~55 MB, almost exactly double. 2 figures.
-
July 2026
How close to peak is a simple softmax? Two GPUs, one measurement trap
Softmax is memory-bound, so the question is simple: what fraction of bandwidth does it reach? I tested three optimizations on an L4 and an MI300X; the data rejected all three. The reason was more interesting than a speedup — most of my measurements were reading cache, not memory, and one GPU showed a mirage the other could not. On measuring your real ceiling, spotting cache-resident benchmarks, and knowing when an operation simply cannot fill the GPU. 3 figures.
-
July 2026
Benchmarking a moving target: my cuda-oxide results changed in weeks
A follow-up to my cuda-oxide study. Re-testing weeks later, two of three findings had changed — and one change dropped a safe-indexing bounds check, so safe Rust code reads out of bounds (confirmed by compute-sanitizer, reported as cuda-oxide #396). Also: why the version tag does not pin the compiler. 3 figures.
-
July 2026
Found it: the Rust GPU speed gap was a 64-bit loop counter
Follow-up to the 2×2 study, which left a ~3–5% Rust deficit on the reduction kernel as "cause not established". Reading the SASS pointed at 64-bit (usize) loop indexing; a three-line u32 change removes the gap completely. 3 figures.
-
July 2026
Language or backend? Adding rust-cuda to my GPU code comparison
A 2×2 follow-up that adds rust-cuda (Rust → libNVVM) to the cuda-oxide study, so language and backend can be separated. The two Rust compilers turn out to make opposite safety choices; the compute-bound speed gap is real but not a pure backend effect. 3 figures.
-
June 2026
Safe Rust on the GPU, at the PTX level: what cuda-oxide actually emits
A PTX/SASS-level comparison of cuda-oxide (safe Rust to PTX) against clang and nvcc on three GPU kernels — where the overhead comes from, whether it amortizes, and what it costs at runtime on an L4. 3 figures.
-
June 2026
Attention kernels on MI300X: a utilization story
Benchmarking FlashAttention kernels on AMD MI300X — AITER vs Triton vs PyTorch SDPA, with hardware counters explaining the throughput ranking. 60 data points, 3 figures.
-
May 2026
Why Outer-Product Beats Vendor Sparse Libraries by up to 198x for LLM Attention Sparsity
Benchmarking dense dataflow strategies and sparse SpMSpM algorithms on NVIDIA T4 and AMD MI300x — 222 data points, 7 figures.