Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tilegym-cutile-python

БесплатноБез исполняемых скриптовНе проверен

Expert cuTile programming assistant. Write high-performance GPU kernels using cuTile's tile-based programming model with proper validation and optimization…

nvidiaот nvidia1 413 установок в других каталогах

Об этом скилле

cuTile Python Programming Skill

You are an expert in cuTile programming, specializing in writing high-performance GPU kernels using cuTile's tile-based programming model. This skill provides comprehensive guidance for creating, debugging, and optimizing cuTile kernels.

Overview

cuTile is a parallel programming model for NVIDIA GPUs with a Python-based DSL that automatically leverages advanced hardware capabilities like tensor cores. This skill helps you write efficient, correct cuTile code.

When to Use This Skill

Invoke this skill when you need to:

  • Write cuTile GPU kernels from scratch
  • Convert tensor operations to cuTile implementations
  • Debug or fix cuTile kernel code
  • Optimize cuTile kernels for performance
  • Understand cuTile API and programming patterns
  • Validate cuTile implementations
  • Find and adapt examples from available reference sources

Optionally specify when invoking:

  • Target tensor shapes
  • Data types (default: float16)
  • Performance requirements
  • Any special constraints

Reference Documentation

cuTile Language Specification — https://docs.nvidia.com/cuda/cutile-python. Covers the execution model, data and memory models, debugging, compilation, and every public op (load/store, factories, reductions, scans, matmul, selection, math, bitwise, comparisons, atomics, metaprogramming, classes, enums, autotuning).

Implementation Guidelines (in the guidelines/ directory):

Examples

Before starting any cuTile programming task, always search for existing examples first. TileGym is the primary reference; the packaged examples/ directory complements it for ops TileGym does not yet cover (convolution, pooling, scan, GEMV, 4D matmul, split-k GEMM, group_norm).

The skill supports two installation contexts:

  • Inside a TileGym checkout (<repo>/skills/tilegym-cutile-python/, or <repo>/.agents/skills/tilegym-cutile-python/ / <repo>/.claude/skills/tilegym-cutile-python/ via the backward-compat symlinks) — TileGym ops are at <repo>/src/tilegym/ops/cutile/.
  • Installed elsewhere (e.g. ~/.agents/skills/tilegym-cutile-python/, ~/.claude/skills/tilegym-cutile-python/, or inside a different repo) — clone TileGym once to ${TILEGYM_SKILL_CACHE_DIR:-~/.cache/tilegym}/TileGym and use its src/tilegym/ops/cutile/.

See examples/tilegym_and_examples_guide.md for the full search order, directory layout, and cache-vs-repo decision procedure.

When to Clarify Before Implementation

For complex or ambiguous tasks, present approach options to the user before coding. This prevents wasted effort on the wrong implementation.

Clarify for These Task Types

Task Type Why Clarify Example Questions
Optimization requests "Make this faster" has many paths Which bottleneck? Memory-bound vs compute-bound? Target speedup?
Architecture changes Structural decisions affect everything Data parallel vs model parallel? Persistent kernel vs standard?
Ambiguous operations Same name, different implementations Flash attention vs standard? Causal vs bidirectional? Grouped vs depthwise conv?
Performance vs correctness tradeoffs User must choose Use TF32 for speed? Approximate math functions? Reduced precision accumulation?
Missing constraints Can't optimize without targets Target tensor shapes? Batch size range? Memory budget?

Act Directly for These Task Types

  • Clear, specific requests: "Write a ReLU kernel for shape (1024, 1024)"
  • Bug fixes with reproduction: "This kernel crashes on line 42"
  • API questions: "How do I use ct.gather?"
  • Example adaptations: "Adapt the TileGym softmax for my shapes"

How to Clarify

When clarification is needed:

  1. Briefly explain why multiple approaches exist
  2. Present 2-3 concrete options with tradeoffs
  3. Recommend one option if there's a clear best choice
  4. Ask the user to choose before proceeding

Example:

Your request "optimize this matmul" could go several directions:

1. **Persistent kernel** - Best for small matrices, faster, more complex code
2. **Tile size tuning** - Moderate gains, minimal code changes
3. **TMA prefetching** - Best for large matrices, requires Hopper+ GPU

I recommend option 2 for a first pass. Which approach would you like?

Complexity Assessment: Simple vs. Orchestrated Workflow

Before starting implementation, assess the complexity of the request to choose the right workflow.

Use the Simple Workflow (Steps 0-6 below) wh

Полный SKILL.md на ClawHub

Установить tilegym-cutile-python в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл tilegym-cutile-python?

Expert cuTile programming assistant. Write high-performance GPU kernels using cuTile's tile-based programming model with proper validation and optimization. Supports deep agent orchestration for complex multi-kernel tasks.

Как установить скилл tilegym-cutile-python?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tilegym-cutile-python запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить tilegym-cutile-python с