Back to Skills

debug-cuda-crash

Tutorial for debugging CUDA crashes using API logging

4,715stars659forksUpdated 1/21/2026

Security Assessment

Safe(100/100)
Security Score100/100

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

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill