cutlass-skill
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "cutlass-skill":https://skillpi.com/zh/skills/deepskill-3aff2d9b039e5de66b5285b4c7e8086c29f42f239d936770c91b1b9f232382f8。安装前核对上游来源和版本:https://github.com/slowlyC/agent-gpu-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于编写、调试和优化来自本地上游源码、示例和头文件的 CUTLASS、CuTe 和 CuTeDSL GPU 内核。适用于明确涉及 CUTLASS/CuTe/CuTeDSL、cute::Layout、cute::Tensor、TiledMMA、TiledCopy、CollectiveBuilder、CollectiveMainloop、CollectiveEpilogue、GemmUniversal、KernelSchedule、EpilogueSchedule、CUTLASS 流水线、EVT、pycute 或 CUTLASS 模板错误的任务。关于原始 CUDA/PTX 或 NVIDIA 架构相关事实,应使用 cuda-skill;关于 Triton 或 Gluon 实现工作,应使用 triton-skill。
介绍来源: third_party · slowlyC · 0.0.1 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
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.
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 面向 CUTLASS/CuTe/CuTeDSL 开发者的专用工具,提供源码定位、示例查询、构建调试等完整能力
- 功能闭环完整,虽为长尾需求但具有明确实用价值
亮点
- 触发词精准完整,覆盖 CUTLASS/CuTe 相关核心概念
- 边界清晰,明确区分与其他 GPU 技能的使用场景
待提升项
-
缺少显式 When to Use 章节 原报告严重程度:轻微
文档结构完整但缺少显式的 "When to Use" 章节标题
改进建议:建议在文档开头添加显式的 "When to Use" 章节以增强可读性
亮点
- Phase/步骤清晰,包含完整的开发工作流
- 提供具体命令示例和路径替换指导
亮点
- 工具来源明确,基于本地 CUTLASS checkout
- 覆盖主要异常场景并提供修复指令
- 建议先验证最小示例再适配,降低执行风险
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
调用命令或脚本
先读脚本与参数,使用普通权限和限定目录;安装或执行前由使用工具再次确认。
主文档提及 · 第 30, 31, 139 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。