CUDA, Triton & GPU Performance
15 questionsDONEUNLOCKEDLOCKED
GPU Performance Interview Questions for Inference
The memory hierarchy in numbers, coalescing and bank conflicts, occupancy, Hopper TMA and WGMMA, Blackwell tensor memory, decode GEMV versus prefill GEMM, fused MoE and dequant kernels, CUDA graphs, and reading Nsight like an interviewer.
Worked answers on inference mechanisms, with calculations, implementation details, and follow-up questions.
You have 5 free answers unlocked here.Sign in free for 5 more · 5 are premium.
01–06Foundationsthe physics and terms an interviewer will not stop to define0/6 done
07–12Core loopsthe standard questions of this round, worked end to end0/6 done
13–15Field scenariosproduction incidents and capacity problems with the inputs left incomplete0/3 done
The concepts behind CUDA, Triton & GPU Performance
The ideas these answers lean on. Foundation concepts are free to read; the advanced ones are Premium.
Foundational
The GPU Memory Hierarchy in NumbersAn H100 SXM has 33 MiB of registers, up to 29 MiB of shared memory, a 50 MB L2 and 80 GB of HBM3 at 3.35 TB/s. Knowing those capacities decides which inference tensors can be reused on chip, why decode streams every weight from HBM each step, and when a benchmark is secretly measuring L2.Advanced
Bytes in Flight: Little's Law for GPU MemoryLittle's law says sustained memory bandwidth equals the bytes a kernel keeps outstanding divided by memory latency. On an H100 SXM that is about 2 MB across the GPU, or 15 KB per SM, and it decides whether a bandwidth-bound decode kernel can reach peak at all, before any question of coalescing or caching.🔒 Premium
Advanced
CUDA Graphs and Launch Overhead in DecodeA decode step is hundreds of small kernels, and once tensor parallelism or a small model shrinks the GPU time per step, the CPU cost of launching them becomes the step time. CUDA graphs record the whole step once and replay it with one launch, which is why every serving engine captures decode graphs per batch-size bucket.🔒 Premium
Unlock all 15 answers · ₹2,000 / $25
Every worked answer and derivation in all 12 topics, every concept page, and the full practice-test bank.
6 months · One payment · No auto-renewal