Skip to main content
skill CX Codex

tilegym-cutile-autotuning — Claude Code skill: tune CuTile kernel

Walks your agent through wiring autotuning into CuTile kernels: search once, cache the winner, launch straight from the cache.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add NVIDIA/skills --skill tilegym-cutile-autotuning -a claude-code
Open on GitHub

What tilegym-cutile-autotuning does

The skill splits the job into stages: classify the kernel, pick candidate configs, call exhaustive_search from cuda.tile.tune, store the winning setup, and skip the search afterwards with a plain ct.launch. Templates cover elementwise ops, in-place kernels, matmul, persistent kernels, FMHA, FP8, grouped GEMM and varlen attention.

A task router points to the right section quickly, and the pitfalls list flags the mistakes that bite most often. Architecture-specific settings run across sm80–sm120, with tile sizes, occupancy and num_ctas treated as separate search dimensions. One trap matters more than the rest: rebuilding the kernel with replace_hints on every call forces a recompile, so both the config and the compiled kernel belong in the cache.

Simple occupancy-only kernels are handled by copying the quick pattern. The heavier cases need the reference files in references/. Tuning runs on a real GPU, so a CUDA setup with PyTorch has to be in place first. Test twice: once with tuning on, once with DISABLE_AUTOTUNE=1, because a broken in-place kernel shows up only in the second run.

What it helps with

  • add config search to a fresh CuTile kernel
  • find out why output turns wrong after the first run
  • cut compile time by dropping configs that never win
  • set up per-architecture parameters for a target GPU
  • benchmark a tuned kernel against a fixed config

Example prompts for the agent

  • Add autotuning to this CuTile kernel using the search-once, cache, direct-launch approach.
  • Wrong results after the first call — check for in-place writes and fix them with split buffers.
  • Trim the config list down to eight per architecture, then A/B it against the fixed baseline.

How to install tilegym-cutile-autotuning

1Skills CLI (Vercel)

npx skills add NVIDIA/skills --skill tilegym-cutile-autotuning -a claude-code

2Manually: put the files in place

~/.claude/skills/tilegym-cutile-autotuning/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/tilegym-cutile-autotuning/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about tilegym-cutile-autotuning

How do I install tilegym-cutile-autotuning in Claude Code?

Run npx skills add NVIDIA/skills --skill tilegym-cutile-autotuning -a claude-code. The skill file then lives at ~/.claude/skills/tilegym-cutile-autotuning/SKILL.md.

What does tilegym-cutile-autotuning do?

It guides the agent through classifying a kernel, designing the config set, implementing the cache-based pattern and validating the outcome. Common autotuning mistakes get their own section.

Why is calling replace_hints on every invocation a problem?

Each call triggers a recompile. That is why the cache stores the chosen config together with the already-built kernel object.

Similar skills

Everything for AI and ML →

From the same set194

tao-finetune-clip A skill that walks an agent through CLIP training, zero-shot classification, embedding extraction and ONNX or TensorRT export in NVIDIA TAO. CX Codex +1 1,600installs tao-finetune-cosmos-embed Configures Docker runs for Cosmos-Embed1 inside NVIDIA TAO, enabling text-to-video retrieval, model fine-tuning, evaluation, and artifact exports. CX Codex +1 1,600installs tilegym-converting-cutile-to-julia Translates cuTile Python GPU kernels into cuTile.jl for Julia with 1-based indexing and column-major memory layout. Useful when porting workloads to Blackwell GPUs. CX Codex +1 1,500installs tilegym-converting-cutile-to-triton Turns cuTile GPU kernels into Triton ones through gated phases: analyze, convert, validate, test, benchmark. Debugging of failed ports included. CX Codex +1 1,500installs cuopt-multi-objective-exploration Traces Pareto frontiers for multi-objective optimization using NVIDIA cuOpt. It maps tradeoffs between competing goals when no single weighting exists. CX Codex +1 1,300installs jetson-diagnostic Collects a read-only Jetson snapshot covering device identity, memory, GPU, thermal state, power, storage, services and processes. Use it to inspect a live host. CX Codex +1 1,300installs jetson-headless-mode Plans a headless-mode switch on Jetson and applies only safe, reversible changes: drops the graphical target and non-essential daemons. CX Codex +1 1,200installs jetson-optimize-memory An agent skill that frees DRAM on NVIDIA Jetson by disabling unused subsystems across four boot layers. CX Codex +1 1,200installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor