aoti-debug
A skill kept in the PyTorch repository for debugging AOTInductor, PyTorch's ahead-of-time compiler, when compiled models crash or fail: segfaults, device mismatches, constant-loading errors and CUDA illegal memory accesses.
スキルの内容
A skill kept in the PyTorch repository for debugging AOTInductor, PyTorch's ahead-of-time compiler, when compiled models crash or fail: segfaults, device mismatches, constant-loading errors and CUDA illegal memory accesses. It starts with three checks (same device type at compile and load time, inputs on the right device, input shapes matching the compiled constraints), then gives a step-by-step route for memory errors: turn on input and NaN checks, make failures reproducible by disabling the caching allocator and forcing synchronous launches, and print kernels as they run to find the culprit. It lists the relevant environment variables and notes that the older aot_compile and aot_load functions are deprecated.
できること
- Check device and shape mismatches in AOTInductor models
- Narrow down CUDA illegal memory access errors
- Print kernels at run time to find a failing one
- Pick the right debug environment variables
概要
- 公開元
- PyTorch
- ツール
- デバッグ
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
含まれるファイル
- triton-index-out-of-bounds.md
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
出典
- スキルファイル(SKILL.md)github.com/pytorch/pytorch · 根拠となる項目:公開元, ライセンス2026年11月10日
- GitHubリポジトリgithub.com/pytorch/pytorch · 根拠となる項目:活動状況2026年11月11日
- リポジトリ内のフォルダ(aoti-debug)github.com/pytorch/pytorch · 根拠となる項目:スクリプトを含む2026年11月10日