debug-cuda-crash
Tutorial for debugging CUDA crashes using API logging
Security Assessment
About debug-cuda-crash
The 'debug-cuda-crash' skill provides a comprehensive tutorial for debugging CUDA crashes within the FlashInfer framework using API logging techniques. CUDA errors such as illegal memory access, out-of-bounds issues, and numerical anomalies can lead to abrupt program terminations, leaving developers without crucial debugging information. This skill addresses these challenges by enabling users to capture and log input tensors prior to crashes, thereby offering insights into the data that triggered the errors. By leveraging this logging capability, developers can more effectively diagnose and resolve issues within their CUDA applications.
FAQ
How do I enable API logging?
You can enable API logging by setting the FLASHINFER_LOGLEVEL environment variable to the desired level and the FLASHINFER_LOGDEST variable to your preferred logging destination.
What versions of FlashInfer and CUDA are compatible with this skill?
This skill is compatible with FlashInfer version 0.6.0 and CUDA toolkit version 12.1.
Are there any limitations when using API logging?
API logging may not capture all possible errors and relies on the correct configuration of logging levels to provide useful information.
Install debug-cuda-crash
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
flashinfer-ai/flashinfer