cutlass-skill
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cutlass-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3aff2d9b039e5de66b5285b4c7e8086c29f42f239d936770c91b1b9f232382f8. Verify the upstream source and version against https://github.com/slowlyC/agent-gpu-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Use for writing, debugging, and optimizing CUTLASS, CuTe, and CuTeDSL GPU kernels based on local upstream source, examples, and headers. Applicable when the task explicitly involves CUTLASS/CuTe/CuTeDSL, cute::Layout, cute::Tensor, TiledMMA, TiledCopy, CollectiveBuilder, CollectiveMainloop, CollectiveEpilogue, GemmUniversal, KernelSchedule, EpilogueSchedule, CUTLASS pipelines, EVT, pycute, or CUTLASS template errors. For raw CUDA/PTX or NVIDIA-architecture facts use cuda-skill; for Triton or Gluon implementations use triton-skill.
Introduction source: third_party · slowlyC · 0.0.1 Reference
SkillPi interpretation
- Testing
- Not tested
Browse files
Frontmatter
name: cutlass-skill
description: >-
Write, debug, and optimize CUTLASS, CuTe, and CuTeDSL GPU kernels from local
upstream source, examples, and headers. Use when the task explicitly involves
CUTLASS/CuTe/CuTeDSL, cute::Layout, cute::Tensor, TiledMMA, TiledCopy,
CollectiveBuilder, CollectiveMainloop, CollectiveEpilogue, GemmUniversal,
KernelSchedule, EpilogueSchedule, CUTLASS pipelines, EVT, pycute, or CUTLASS
template errors. Use cuda-skill for raw CUDA/PTX or NVIDIA architecture facts,
and triton-skill for Triton or Gluon implementation work.CUTLASS and CuTe development
Use the local CUTLASS checkout as the primary implementation reference. Prefer current source and examples over remembered APIs because CuTeDSL paths and interfaces change frequently.
Locate the checkout
Resolve the directory containing this SKILL.md, then use its repos/cutlass/ child. The installer links that path to agent-gpu-skills/third_party/cutlass/ or to the checkout supplied through CUTLASS_REPO.
In commands below, replace CUTLASS_REPO with the resolved absolute path:
CUTLASS_REPO=/absolute/path/to/cutlass-skill/repos/cutlass
If the checkout is missing, run this from the agent-gpu-skills repository and reinstall the Skill:
bash update-repos.sh cutlass
bash install.sh --skill cutlass-skill
Choose the source surface
| Task | Start here |
|---|---|
| CuTeDSL API and implementation | python/CuTeDSL/cutlass/ |
| All CuTeDSL examples and tutorials | examples/python/CuTeDSL/ |
| CUTLASS C++ examples | examples/ |
| CUTLASS C++ kernels and builders | include/cutlass/ |
| CuTe C++ layout, copy, and MMA | include/cute/ |
| Python layout and swizzle utilities | python/pycute/ |
| Python manifest and generator utilities | python/cutlass_library/ |
Read quick-reference.md when mapping an operation or architecture to a concrete file in the validated checkout.
Query workflow
- Identify the programming surface: CuTeDSL Python, CuTe C++, or CUTLASS C++.
- Find the closest example for the target architecture and operation.
- Trace the example into the implementation and headers it instantiates.
- Check dtype, layout, alignment, architecture target, schedule, and epilogue together.
- Build or run the smallest representative example before adapting it to the target repository.
Discover files before loading a large source file:
find "$CUTLASS_REPO/examples/python/CuTeDSL" -type f | sort
find "$CUTLASS_REPO/examples" -mindepth 1 -maxdepth 1 -type d | sort
Search CuTeDSL definitions and usage together:
rg -n 'TiledMMA|tiled_mma' \
"$CUTLASS_REPO/python/CuTeDSL/cutlass/cute" \
"$CUTLASS_REPO/examples/python/CuTeDSL"
rg -n 'Pipeline|pipeline' \
"$CUTLASS_REPO/python/CuTeDSL/cutlass/pipeline" \
"$CUTLASS_REPO/examples/python/CuTeDSL/cute"
Trace CUTLASS C++ builders and kernels:
rg -n 'CollectiveBuilder' \
"$CUTLASS_REPO/examples/49_hopper_gemm_with_collective_builder"
rg -n 'CollectiveMainloop' \
"$CUTLASS_REPO/include/cutlass/gemm/collective"
rg -n 'GemmUniversal' \
"$CUTLASS_REPO/include/cutlass/gemm"
Trace CuTe layout and architecture primitives:
rg -n 'make_layout|composition|complement' \
"$CUTLASS_REPO/include/cute/layout.hpp"
rg -n 'TiledCopy|make_tiled_copy' "$CUTLASS_REPO/include/cute"
rg -n 'SM90_TMA|SM100_TMA' "$CUTLASS_REPO/include/cute/arch"
For a C++ example, inspect its CMakeLists.txt and build only the selected target. Replace the architecture and target below for the workload:
cmake -S "$CUTLASS_REPO" -B /tmp/cutlass-build -DCUTLASS_NVCC_ARCHS=100a
cmake --build /tmp/cutlass-build \
--target 71_blackwell_gemm_with_collective_builder
Before running a CuTeDSL example, inspect the current python/CuTeDSL/pyproject.toml and requirements files instead of assuming a compatible CUDA or Python version.
Implementation discipline
Keep three layers separate when diagnosing a CUTLASS kernel:
problem shape and tensor layout
→ selected collective and schedule
→ generated CUDA/PTX behavior on the target architecture
Do not infer the selected schedule from an example directory name. Follow the instantiated types and builder parameters. When an architecture or instruction detail determines correctness, add cuda-skill and verify it against the CUDA or PTX reference.
For correctness work:
- preserve the original problem shapes, strides, layouts, dtypes, scaling format, and epilogue;
- compare against an independent reference implementation;
- test boundary shapes and alignment cases before performance tuning;
- treat template compilation success as necessary but not sufficient.
For performance work:
- establish a stable baseline and measurement method;
- change one schedule, tile, stage count, or epilogue choice at a time;
- record compiler resource usage and the exact architecture target;
- profile only after confirming that the measured dispatch path uses the intended kernel.
Updating the source
From the agent-gpu-skills repository:
bash update-repos.sh cutlass
python3 scripts/validate_repo.py --require-sources
The checkout follows CUTLASS main, while third_party/UPSTREAMS.toml records the commit last accepted by this Skill. Review source-map drift before updating that record.
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向 CUTLASS/CuTe/CuTeDSL 开发者的专用工具,提供源码定位、示例查询、构建调试等完整能力
- 功能闭环完整,虽为长尾需求但具有明确实用价值
Highlights
- 触发词精准完整,覆盖 CUTLASS/CuTe 相关核心概念
- 边界清晰,明确区分与其他 GPU 技能的使用场景
Areas to improve
-
缺少显式 When to Use 章节 Reported severity: Minor
文档结构完整但缺少显式的 "When to Use" 章节标题
Recommendation: 建议在文档开头添加显式的 "When to Use" 章节以增强可读性
Highlights
- Phase/步骤清晰,包含完整的开发工作流
- 提供具体命令示例和路径替换指导
Highlights
- 工具来源明确,基于本地 CUTLASS checkout
- 覆盖主要异常场景并提供修复指令
- 建议先验证最小示例再适配,降低执行风险
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Invoke commands or scripts
Read the script and arguments first. Use ordinary privileges and a scoped directory; confirm installation or execution in your host tool.
Mentioned in main document · lines 30, 31, 139
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.