cuda-kernel-refine
Installation
SKILL.md
CUDA Kernel Refinement Loop
One change per cycle: baseline → profile → classify → optimize → verify → compare → loop. Multiple simultaneous changes make it impossible to attribute improvement. Revert on regression.
1. Establish Baseline
Discover the project's benchmark infrastructure before running anything:
- Check
Makefilefor bench/profile targets (make bench,make profile, etc.) - Check for benchmark binaries (
cargo bench,pytest-benchmark, a custome2e_benchbinary) - Look at CI scripts or README for the canonical benchmark invocation
- If no benchmark exists, write a minimal one that exercises the hot path with measurable output
Run with enough iterations for stable results — coefficient of variation <5%.
# Save baseline (JSON or structured output preferred for diff later)
./benchmark --iterations 5 --json-output /tmp/bench-baseline.json