tilegym-improve-cutile-kernel-perf
Originally fromnvidia/skills
Installation
SKILL.md
Iterative cuTile Kernel Performance Optimization
Systematically profile, diagnose bottlenecks, and iteratively tune a cuTile kernel's performance in the TileGym repository.
Instructions
Follow the three phases in order: Setup the environment and baseline, run the Experimentation loop with a tracked log, then iterate The experiment loop until perf goals are met or further gains plateau.
Setup
Work with user to prepare optimization environment:
- Create a fresh git branch: Propose a branch name, e.g.,
cutile-perf-<kernel_name>-<date>from current branch. Checkoutgit checkout -b <branch name> - Locate the target kernel:
- cuTile kernels live under
src/tilegym/suites/<suite>/cutile/orsrc/tilegym/ops/cutile/ - Read the kernel file and identify: the
@ct.kerneldecorated function(s), the launch wrapper (ct.launch()orct_experimental.autotune_launch()), the@register_implregistration, and current autotune configs (if any)
- cuTile kernels live under
- Classify the kernel:
- Arithmetic Intensity < 10 -> Memory-bound
- Arithmetic Intensity 10-50 -> Balanced
- Arithmetic Intensity > 50 -> Compute-bound