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 vecaddAll lessons in this course
- Stepping Kernels in cuda-gdb
- Finding Leaks with memcheck
- Hunting Races with racecheck
- Catching Sync Errors with synccheck