{"@attributes":{"version":"2.0"},"channel":{"title":"Midia Reshadi \u2014 GPU kernel performance, measured","link":"https:\/\/midiareshadi.github.io\/","description":"Independent GPU kernel research. Benchmarks and low-level analysis on NVIDIA and AMD hardware, including the experiments that reject my own hypotheses.","language":"en","lastBuildDate":"Thu, 12 Nov 2026 18:18:08 +0000","item":[{"title":"FP8 on Ada with cuda-oxide, checked on real silicon","link":"https:\/\/midiareshadi.github.io\/blog\/fp8-ada\/","guid":"https:\/\/midiareshadi.github.io\/blog\/fp8-ada\/","pubDate":"Sat, 01 Aug 2026 00:00:00 +0000","description":"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.","category":["FP8","Rust","cuda-oxide","Ada"]},{"title":"A cliff below the cache: why a softmax slows down before it should","link":"https:\/\/midiareshadi.github.io\/blog\/cache-cliff\/","guid":"https:\/\/midiareshadi.github.io\/blog\/cache-cliff\/","pubDate":"Sat, 01 Aug 2026 00:00:00 +0000","description":"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.","category":["cache","roofline","Triton","L4"]},{"title":"How close to peak is a simple softmax? Two GPUs, one measurement trap","link":"https:\/\/midiareshadi.github.io\/blog\/softmax-cache-mirage\/","guid":"https:\/\/midiareshadi.github.io\/blog\/softmax-cache-mirage\/","pubDate":"Wed, 01 Jul 2026 00:00:00 +0000","description":"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 \u2014 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.","category":["softmax","roofline","Triton","MI300X"]},{"title":"Benchmarking a moving target: my cuda-oxide results changed in weeks","link":"https:\/\/midiareshadi.github.io\/blog\/oxide-moving-target\/","guid":"https:\/\/midiareshadi.github.io\/blog\/oxide-moving-target\/","pubDate":"Wed, 01 Jul 2026 00:00:00 +0000","description":"A follow-up to my cuda-oxide study. Re-testing weeks later, two of three findings had changed \u2014 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.","category":["cuda-oxide","safety","PTX","reproducibility"]},{"title":"Found it: the Rust GPU speed gap was a 64-bit loop counter","link":"https:\/\/midiareshadi.github.io\/blog\/reduction-gap\/","guid":"https:\/\/midiareshadi.github.io\/blog\/reduction-gap\/","pubDate":"Wed, 01 Jul 2026 00:00:00 +0000","description":"Follow-up to the 2\u00d72 study, which left a ~3\u20135% 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.","category":["SASS","rust-cuda","cuda-oxide","performance"]},{"title":"Language or backend? Adding rust-cuda to my GPU code comparison","link":"https:\/\/midiareshadi.github.io\/blog\/rust-cuda-vs-oxide\/","guid":"https:\/\/midiareshadi.github.io\/blog\/rust-cuda-vs-oxide\/","pubDate":"Wed, 01 Jul 2026 00:00:00 +0000","description":"A 2\u00d72 follow-up that adds rust-cuda (Rust \u2192 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.","category":["rust-cuda","cuda-oxide","Rust","PTX"]},{"title":"Safe Rust on the GPU, at the PTX level: what cuda-oxide actually emits","link":"https:\/\/midiareshadi.github.io\/blog\/cuda-oxide-ptx\/","guid":"https:\/\/midiareshadi.github.io\/blog\/cuda-oxide-ptx\/","pubDate":"Mon, 01 Jun 2026 00:00:00 +0000","description":"A PTX\/SASS-level comparison of cuda-oxide (safe Rust to PTX) against clang and nvcc on three GPU kernels \u2014 where the overhead comes from, whether it amortizes, and what it costs at runtime on an L4. 3 figures.","category":["cuda-oxide","Rust","PTX","GPU"]},{"title":"Attention kernels on MI300X: a utilization story","link":"https:\/\/midiareshadi.github.io\/blog\/attn-dsl-bench\/","guid":"https:\/\/midiareshadi.github.io\/blog\/attn-dsl-bench\/","pubDate":"Mon, 01 Jun 2026 00:00:00 +0000","description":"Benchmarking FlashAttention kernels on AMD MI300X \u2014 AITER vs Triton vs PyTorch SDPA, with hardware counters explaining the throughput ranking. 60 data points, 3 figures.","category":["MI300X","FlashAttention","AITER","Triton"]},{"title":"Why Outer-Product Beats Vendor Sparse Libraries by up to 198x for LLM Attention Sparsity","link":"https:\/\/midiareshadi.github.io\/blog\/spmm-benchmark\/","guid":"https:\/\/midiareshadi.github.io\/blog\/spmm-benchmark\/","pubDate":"Fri, 01 May 2026 00:00:00 +0000","description":"Benchmarking dense dataflow strategies and sparse SpMSpM algorithms on NVIDIA T4 and AMD MI300x \u2014 222 data points, 7 figures.","category":["Triton","SpMSpM","MI300x","LLM"]}]}}