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.
What the skill teaches
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.
Capabilities
Not stated in its documentation
About
- Publisher
- PyTorch
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Not stated in its documentation | |
| Publisher | PyTorch | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | NOASSERTION | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 2026105,390 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
Sources
- GitHub repositorygithub.com/pytorch/pytorch · Backs: Publisher, ActivityNov 11, 2026
- Skill file (SKILL.md)github.com/pytorch/pytorch · Backs: Includes scripts, LicenceNov 10, 2026
- Folder in the repository (cuda-index-width)github.com/pytorch/pytorch · Backs: Includes scriptsNov 10, 2026