tongminglaic/ako4x/profiler-ncu
Claude Code and agent skill by tongminglaic/ako4x
- community
Checking that the SKILL.md file is still in the repository.
Run NVIDIA Nsight Compute (NCU) per-kernel profiling for register pressure, occupancy, stall-reason, memory-throughput, and IPC analysis. Use BEFORE architecting an optimization fix — not only after — when a hypothesis about microarchitectural behavior needs verification. NCU `Duration` is NOT comparable to bench timing; use NCU for ratios only.
Install
npx vskill@latest install tongminglaic/ako4x/profiler-ncuSKILL.md
Profiler (NCU)
Wrapper around ncu. Command entry: bash scripts/profile.sh.
Detailed reference: ncu.md. Top-level commands:
Key constraints
- NCU under graph capture is largely blind — graph-launched kernels go through
cuGraphLaunchand the--kernel-namefilter often returns "No kernels were profiled". If your kernel usestorch.cuda.CUDAGraph, install a module-level_NO_GRAPH = bool(os.environ.get("NO_GRAPH"))gate AND setNO_GRAPH=1— modal backend via--env NO_GRAPH=1, local backend by exporting it in the shell (run_local_profile.pyhas no--envflag). Seencu.md"CUDA graph capture interaction". - Don't profile the reference — the unoptimized Python implementation launches dozens of small kernels; profiling produces unhelpful noise. Make at least one optimization pass first.
- NCU's "Est. Local Speedup" overestimates SMEM-staging fixes on register-resident reduction kernels. Treat the field as an upper bound, not a prediction.
COUPLED references
- Local backend:
scripts/run_local_profile.py - Modal backend:
scripts/run_modal_profile.py - Shared runtime:
scripts/bench_utils.py(workload loading, dataset resolution)
Per-operator NCU traps (e.g. SMEM-staging regressions, PDL waves-per-SM thresholds) live in docs/prior/TRAPS.md (when your operator has a prior archive).
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtemplates/skills/profiler-ncu/SKILL.md
Popularity
- Repository stars
- 74
- Repository forks
- 13
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tongminglaic/ako4x/profiler-ncu)