cuda-index-width
A contributor skill in the PyTorch repository for fixing integer overflow in CUDA kernel indexing, such as failures on tensors near two billion elements.
スキルの内容
A contributor skill in the PyTorch repository for fixing integer overflow in CUDA kernel indexing, such as failures on tensors near two billion elements. The agent finds the exact expression that can overflow instead of switching every index to 64 bits, then picks a fix by where the code runs: a local 64-bit cast for one-off setup maths, a kernel templated on the index type for hot loops, an early size check for kernels that only support 32 bits, or tiling when the launch grid itself is too large. It uses PyTorch's existing helpers, weighs binary size and speed with A/B builds, adds a regression test at the boundary and runs the case under compute-sanitizer.
できること
ドキュメントに記載なし
概要
- 公開元
- PyTorch
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
出典
- GitHubリポジトリgithub.com/pytorch/pytorch · 根拠となる項目:公開元, 活動状況2026年11月11日
- スキルファイル(SKILL.md)github.com/pytorch/pytorch · 根拠となる項目:スクリプトを含む, ライセンス2026年11月10日
- リポジトリ内のフォルダ(cuda-index-width)github.com/pytorch/pytorch · 根拠となる項目:スクリプトを含む2026年11月10日