0PricingLogin
CUDA Academy · Lesson

Stepping Kernels in cuda-gdb

Breakpoints and per-thread inspection.

Meet cuda-gdb

When a kernel misbehaves, cuda-gdb lets you pause it and look inside, just like gdb does for ordinary CPU programs. 🔍

Build with Debug Info

cuda-gdb needs symbols, so compile your kernel with -G to add full device debug information before you debug.

nvcc -g -G vecadd.cu -o vecadd

All lessons in this course

  1. Stepping Kernels in cuda-gdb
  2. Finding Leaks with memcheck
  3. Hunting Races with racecheck
  4. Catching Sync Errors with synccheck
← Back to CUDA Academy