0PricingLogin
CUDA Academy · Lesson

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 ./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