add-uint-support
CommunityExpand PyTorch operators with unsigned integer types.
Software Engineering#pytorch#cuda#at_dispatch#unsigned integer#type support#operator development#uint
Authorlinjunhui
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the complex and error-prone process of adding unsigned integer (uint) type support to PyTorch operators, saving developers time and ensuring consistent implementation across kernels.
Core Features & Use Cases
- Automated Type Expansion: Automatically updates
AT_DISPATCHmacros to includeuint16,uint32, anduint64types. - Consistent Implementation: Ensures that PyTorch operators correctly handle unsigned integer data, preventing type-related bugs.
- Decision Tree Guidance: Provides a clear decision tree to determine the best method for adding uint support (explicitly or by upgrading type groups).
- Use Case: You are porting a numerical algorithm to PyTorch that heavily relies on unsigned 32-bit integers. Instead of manually modifying every
AT_DISPATCHmacro and risking errors, you use this Skill to automatically update the necessary operator definitions, ensuring your algorithm runs correctly with uint types.
Quick Start
Add unsigned integer support to the PyTorch operator defined in my_cuda_kernel.cpp.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: add-uint-support Download link: https://github.com/linjunhui/cuda-learning/archive/main.zip#add-uint-support Please download this .zip file, extract it, and install it in the .claude/skills/ directory.