Performance & GPU Programming
Predict, profile and optimize AI workloads from one request and one kernel through tensor cores, compilers, inference integration and multi-GPU communication, with correctness, strong baselines and negative regimes preserved.
10 sections · 103 units · about 425 hours
- One request through prefill and decode, and the shapes that set its cost4h
- Operation counts for projections, MLPs, output and attention4h
- Parameter, activation, workspace and KV-cache memory4h
- Arithmetic intensity, a first roofline and the prefill and decode regimes5h
- TTFT, TPOT, throughput and goodput4h
- Workload distributions, cold start and steady state3h
- Cost categories and the Amdahl bound on end-to-end gain3h
- Strong baselines and the correctness contract3h
- Manifests, claim schemas, predictions declared first and artifact lineage4h
- Training-step operation, activation and communication arithmetic3h
- Host, device, kernels, index mapping and explicit device memory4h
- Warps, SMs, block residency and latency hiding4h
- Occupancy limits, registers, spills and launch resources4h
- Global memory, caches, transactions and coalescing4h
- Shared-memory banks, conflicts, padding and the constant cache3h
- Divergence, predication, grid-stride loops and bounds3h
- Synchronization scopes, atomics and memory ordering4h
- From CUDA source to PTX, cubin and SASS5h
- Native extension contracts: shapes, strides, aliasing and layout5h
- Compute capability, feature detection and fallback paths3h
- Timed boundaries, asynchronous launch and event timing4h
- Warmup, compilation, allocator and cache state3h
- Clocks, power, interference and environment capture3h
- Interleaved trials, raw samples and uncertainty4h
- Independent references and differential and property tests4h
- Tolerances and an extreme-value policy4h
- Compute Sanitizer: out-of-bounds, races, initialization and synchronization4h
- CPU-GPU timelines, NVTX ranges and trace-to-source correlation4h
- Kernel counters, section sets, replay and profiler overhead4h
- Useful work, achieved throughput and roofline placement4h
- Warp stalls, resource evidence and bottleneck classification4h
- End-to-end translation, regressions and cross-device reproducibility4h
- Elementwise maps, vectorized access and thread coarsening4h
- Transpose: coalescing, shared-memory tiles and bank conflicts5h
- Reduction trees, work efficiency and floating-point order4h
- Warp shuffles, block reductions, multi-pass completion and tails5h
- Kogge-Stone, Brent-Kung and segmented scans5h
- Histograms, atomic contention and privatization4h
- Stream compaction from predicate, scan and scatter3h
- Online softmax and its extreme-value policy4h
- Pinned memory, streams, events and copy-compute overlap5h
- CUDA graphs and validated dispatch with fallback4h
- Seeded defects: races, divergent barriers, partial warps, stale buffers and masks3h
- GEMM operation counts and the naive kernel's traffic3h
- Shared-memory tiling and boundary predication4h
- Register tiles, vectorized tile copies and resource limits5h
- Block, warp and instruction tiling with swizzled shared-memory layouts4h
- Tensor-core MMA: WMMA, `mma.sync` fragments and CuTe atoms5h
- Asynchronous copies, multistage pipelines and warp specialization6h
- Input, product and accumulation precision across FP16, BF16, TF32 and FP84h
- Scale granularity and quantization error against task tolerances4h
- Epilogue fusion and persistent or grouped GEMM5h
- Library baselines, shape-aware dispatch and residual analysis6h
- Attention shapes, prefill and decode reuse, and materialized traffic5h
- Online softmax state, query and key-value tiling and output tolerance6h
- Causal and padding masks and MHA, GQA and MQA grouping5h
- FlashAttention IO complexity and FlashAttention-2 work partitioning4h
- Backward attention state and recomputation5h
- Variable-length, paged and decode attention5h
- Key-value append, gather, layout conversion and quantized loads5h
- Stable RMSNorm and LayerNorm, and RoPE fusion6h
- SwiGLU MLP and epilogue fusion boundaries6h
- Attention baselines, shape matrices, end-to-end translation and losing regimes6h
- Triton programs, program IDs, pointers and masks4h
- Triton reductions and dot-product precision3h
- Specialization, autotuning and compile-cost accounting5h
- Generated code, resources and debugging Triton kernels3h
- Matched CUDA and Triton kernels and the lowering path5h
- `torch.compile` capture, fusion, graph breaks and recompilation4h
- Custom operators, stream semantics and autograd contracts3h
- The CUTLASS hierarchy and CuTe layout algebra5h
- CuTe copy and MMA atoms, tiled MMAs and pipelines4h
- Other programming models, dispatch with fallback and compiler regression tests4h
- Operator dispatch, trace correlation and fusion groups4h
- Launch overhead, CUDA graphs, bucketing and graph misses4h
- Request lifecycle, continuous batching and the kernel shapes it creates4h
- Paged KV allocation and prefix reuse at kernel level4h
- Chunked prefill, decode interference and long-context regimes3h
- Quantized dispatch, speculative verification and structured-decoding gaps5h
- Multimodal encoder and decoder co-execution2h
- Integrating a custom operator with vLLM, SGLang and FlashInfer5h
- Token, distribution and task-quality equivalence3h
- Endpoint workloads, request metrics, baselines and attribution5h
- Versioned regression gates, fallback and rollback2h
- Interconnects and topology: PCIe, NVLink, NVSwitch and RDMA4h
- Collective contracts and the latency-bandwidth cost model4h
- Ring and tree all-reduce, all-gather and reduce-scatter volume6h
- NCCL algorithms, protocols, channels and rank placement4h
- Compute-communication overlap and communication streams4h
- Rank-aligned timelines, stragglers, congestion and partial failure4h
- All-to-all and MoE dispatch, combine and load balance5h
- Prefill-decode disaggregation and KV transfer5h
- Communication measurement contracts and analytical or CPU simulation4h
- Architecture documents, generation differences and vendor peaks as bounds4h
- AMD CDNA and ROCm vocabulary2h
- Capability matrices, fallback and compatibility tests3h
- Benchmark scenarios, MLPerf boundaries and endpoint goodput4h
- Auditing benchmarks: timing, baselines, parity and cherry-picking4h
- KernelBench, hardened evaluators and reward hacking4h
- Speed-of-light bounds and held-out evaluation3h
- Reconstructing a real kernel path and making one bounded change5h
- Protection, clean reproduction and claim-to-artifact links4h
- Workload-weighted impact, negative results and the design defense4h
Final project: Kernel-to-System Performance Laboratory
Carry one transformer operation and one realistic inference workload through a single evidence repository, from arithmetic and benchmark design through CUDA and Triton kernels, compiler and engine integration, communication analysis and a final architecture-aware extension.
- A correctness-first performance laboratory with hardware and software manifests, independent framework or CPU references, synchronized cold and warm benchmarks, raw interleaved trials, operation and byte models, roofline analysis, Nsight timelines and counters, sanitizer regressions and a repaired misleading benchmark.
- A CUDA and Triton kernel suite containing data movement, reduction or scan, stable softmax, tiled GEMM and one attention or fused transformer path; LeetGPU challenge evidence; adversarial shape, stride, dtype, mask, numerical and asynchronous tests; strong library and compiler baselines; autotuning, dispatch and correct fallback; and retained losing regimes.
- A real kernel-to-inference or communication integration with TTFT, TPOT, memory, goodput and quality evidence; one reconstructed and modified production kernel, compiler or collective path; held-out and portability tests; a clean reproduction package; claim-to-artifact links; a workload-weighted gain; and an honest negative result.
How it's graded · about 14 to 20 hours
Correctness-first laboratory
Pass: The harness carries manifests, independent references, interleaved trials, operation and byte models, roofline analysis, timelines, counters and sanitizer regressions, with one command rebuilding the evidence.
Great: Each claim links to raw samples and states clocks, boundaries and what was left untested.
CUDA and Triton kernel suite
Pass: Data movement, reduction, softmax, tiled GEMM and one attention or fused path run in CUDA and Triton with public-suite evidence, adversarial tests, strong baselines, gated autotuning, tested fallback and retained losing regimes.
Great: Every custom path has a tested fallback and a version-pinned regression.
Kernel-to-system integration
Pass: One reconstructed production path carries TTFT, TPOT, memory, goodput and quality evidence with workload-weighted gain, held-out and portability tests and an honest negative result with its regime explained.
Great: The report defends dispatch and maintenance choice per family against a stronger baseline.
Reproducibility and judgment
Pass: A clean checkout regenerates every table with raw samples and claim-to-artifact links, every protection has an injected-defect test, and multi-GPU numbers carry topology dumps with the NCCL version.
Great: The workload-weighted report keeps losing rows and states which paths your GPU could not run and remained static audit.