Episode 1 · 4:17
Write a CUDA kernel in Rust with cuda-oxide. Follow two threads through a vector addition, see where each thread's index comes from, and check the result on an NVIDIA L4.
Watch and read the transcript →Episode 2 · 4:48
What do extra CUDA threads do when a launch has more threads than elements? Round up the grid, guard the accesses in a Rust kernel, and verify the full output.
Watch and read the transcript →Episode 3 · 5:19
Change a Rust SAXPY kernel from strided to coalesced memory access. Coalescing goes from 12.5% to 100%, and the reference kernel from 1.96 ms to 241 microseconds.
Watch and read the transcript →Episode 4 · 5:08
Build a shared-memory halo tile for a three-point stencil in Rust. Issued sectors drop from about 943.7M to 432.5M, yet kernel time does not improve on an RTX 3090.
Watch and read the transcript →Episode 5 · 5:05
Transpose a matrix in Rust and see why a shared-memory column hits one bank. One padding column takes bank serialization from 8.74x to 1.02x on an NVIDIA RTX 3090.
Watch and read the transcript →Episode 6 · 5:18
Millions of threads, one output address. Combine values inside each block to cut atomic updates from 4,194,304 to 16,384 in a Rust CUDA kernel on an NVIDIA RTX 3090.
Watch and read the transcript →Episode 7 · 5:22
Follow lane zero through warp shuffle offsets 16, 8, 4, 2 and 1 in Rust. The shuffle reduction runs in 33.95 microseconds against 61.82 for a shared-memory tree.
Watch and read the transcript →Episode 8 · 6:19
Fuse scale, bias and ReLU into one Rust CUDA kernel. Launches fall from 315 to 105, summed kernel time from 49.98 ms to 16.65 ms, and peak allocations from 256 to 128 MiB.
Watch and read the transcript →6:43
Follow one vector-add kernel in CUDA C++ and in Rust from saved source to PTX: the loads, bounds checks, trap paths, and kernel time on an NVIDIA L4. Transcript included.
Watch and read the transcript →6:39
Split a serial copy-compute-copy pipeline into four chunks with CUDA streams in Rust, and see what overlaps on an NVIDIA L4: a 1.52x pipeline speedup in this run.
Watch and read the transcript →