Finding Leaks with memcheck
Out-of-bounds and bad device pointers.
Why memcheck Exists
GPU memory bugs rarely crash loudly, so compute-sanitizer with the memcheck tool watches every access and reports the trouble for you. 🛡️
The Modern Command
Run your program under the memcheck tool by prefixing it with compute-sanitizer, the modern replacement for the old cuda-memcheck.
compute-sanitizer --tool memcheck ./vecaddAll lessons in this course
- Stepping Kernels in cuda-gdb
- Finding Leaks with memcheck
- Hunting Races with racecheck
- Catching Sync Errors with synccheck