What problem does it solve?
CUDA developers often struggle to systematically develop, debug, profile, and optimize GPU kernels; this Skill provides a structured guide with workflows and practical guidance to streamline those tasks.
Core Features & Use Cases
- Debugging workflow: leverage printf in device code, compute-sanitizer (memcheck, racecheck, initcheck, synccheck), and cuda-gdb batch usage to identify and reproduce issues.
- Profiling & optimization: perform non-interactive profiling with Nsight Systems (nsys) and Nsight Compute (ncu) to locate hotspots and bottlenecks, then validate improvements with profiling results.
- Binary inspection: use cuobjdump to inspect PTX/SASS and verify kernel composition and resources.
- Contextual reference materials: consult debugging-tools, nsys-guide, ncu-guide, nvtx patterns, and related references to inform workflows.
Quick Start
Start with a minimal CUDA kernel, run compute-sanitizer to surface a bug, profile with nsys/ncu to identify hotspots, and iteratively apply printf-based traces to confirm fixes.