PreporatoLabsCUDA and GPU performance labs
Lab path · GPU programming and performance

CUDA and GPU performance labs

Seven GPU labs that find the idle GPU, fix it, go down to the kernel, and price what is left in dollars.

7 labs·7 on real GPUs · 0 hosted·about 4 hours

GPU performance work comes down to one question: is the GPU busy, and if it is idle, why? Answering it means knowing what a CUDA kernel is (a function that runs in parallel across thousands of GPU threads), how to read a profiler timeline, how batch size and numeric precision (fp32, fp16, bf16) move throughput and memory, and how several jobs can share one device through CUDA streams, MPS (Multi-Process Service, which lets several processes run kernels on one GPU concurrently) and MIG (Multi-Instance GPU, which partitions one GPU into isolated slices). Those are the topics behind the NVIDIA NCP-GENL GPU Acceleration domain (performance profiling, memory optimization, Tensor Core utilization) and the MIG, GPU monitoring and troubleshooting items on the NCP-AII and NCA-AIIO infrastructure exams. The labs make each of those concrete: you capture the trace that shows the idle gap and apply the fix that closes it.

What you'll build
  • Four CUDA C++ kernels (vector add, 2D matrix add, tiled shared-memory matmul, custom autograd op) called from PyTorch
  • A torch.profiler op table and Perfetto timeline for a training loop, and an Nsight Systems .nsys-rep with the bottleneck found, fixed and the speedup measured
  • The batch-size / precision knee for a real model, with SKU-aware precision picks and an accuracy gate
  • A DALI GPU input pipeline benchmarked against the standard PyTorch DataLoader
  • Streams, time-slicing, MPS and MIG measured on one GPU with production ConfigMaps and MIG geometries, and a cost audit that prices GPU waste in dollars
Where it runs

All 7 labs run on dedicated NVIDIA GPU pods in the browser, so every profile and benchmark comes from a real device.

GPU pod
7
dedicated NVIDIA GPU, Jupyter or terminal
Hosted
0
API-backed environment, instant start
Before you start
  • Python and basic PyTorch (a training loop you can read)
  • For the CUDA lab, comfort reading C or C++; the four kernels are short
  • No profiling or GPU-operations experience required; each tool is introduced inside its lab
Every step is checked against the live environment. Progress saves between sessions.
How the path is sequenced

The collection measures first and fixes second. Instrument a training loop with torch.profiler, read the op-level table and the Chrome/Perfetto timeline, and learn when to reach for Nsight Systems; then run the full profile-then-fix loop in Nsight Systems: mark the loop with NVTX ranges (named regions that show up in the trace), capture a .nsys-rep, pinpoint the bottleneck, apply a targeted fix and measure the speedup. Two labs then tune the input side and the numeric side: move image decoding, resizing and augmentation onto the GPU with NVIDIA DALI and benchmark it against a standard PyTorch DataLoader; sweep batch size and fp32/fp16/bf16 precision on a real model to find the throughput/VRAM knee and ship a recommendation with SKU-aware precision picks and an accuracy gate. The two advanced labs go lower and wider: write four CUDA C++ kernels (vector add, 2D matrix add, tiled matmul with shared memory, a custom autograd op) and run them from PyTorch; then measure four ways to share one GPU (CUDA streams, time-slicing, MPS, MIG) and write the start scripts, Kubernetes device-plugin ConfigMaps and MIG geometries that put sharing into production. The last lab builds a four-stage cost audit (measure, classify, price, recommend) that turns raw NVML samples into dollar-denominated waste and remediation actions.

All seven labs run on dedicated NVIDIA GPU pods in the browser, so every profile and benchmark comes from a real device; each takes 30 to 45 minutes and is checked step by step.

Preporato Pro

Run all 7 labs in this path, and every other lab and practice test on Preporato.

  • All 7 labs in this path
  • Dedicated GPU pods included
  • Every certification practice test
  • Cancel any time
$29.99/month
or $290 per year

Frequently asked questions