add-sgl-kernel
CommunityAdd custom CUDA kernels to sgl-kernel.
Authorrayleizhu
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a comprehensive guide to integrating custom, heavyweight CUDA/C++ kernels into the sgl-kernel library, streamlining the development of high-performance GPU operations.
Core Features & Use Cases
- Kernel Implementation: Step-by-step instructions for writing CUDA kernels for element-wise operations.
- Integration Workflow: Details on updating C++ declarations, Torch extension registration, CMake build files, and Python APIs.
- Testing & Benchmarking: Guidance on creating robust tests and performance benchmarks for new kernels.
- Use Case: A developer needs to add a custom tensor scaling operation to sgl-kernel that leverages CUTLASS for maximum performance. This Skill guides them through the entire process from kernel implementation to testing.
Quick Start
Follow the tutorial to implement a new scale kernel in sgl-kernel, including tests and benchmarks.
Dependency Matrix
Required Modules
None requiredComponents
referencesscripts
💻 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-sgl-kernel Download link: https://github.com/rayleizhu/sglang/archive/main.zip#add-sgl-kernel Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.