mit-han-labmit-han-labOfficialยท1 Agent Skills Included

ncu-report-skill

CUDA kernel profiling and bottleneck diagnosis on NVIDIA B200

Profiles CUDA kernels with Nsight Compute on NVIDIA B200 GPUs, from harness setup to final optimization report. Parses ncu reports with Python, ranks per-line stall hotspots, and maps performance patterns to concrete fixes. Eliminates guesswork and manual metric hunting with ready-made scripts, B200 metric names, and a diagnosis playbook.
npx skills add mit-han-lab/ncu-report-skill --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install ncu-report-skill?โ–ผ

Run `npx skills add mit-han-lab/ncu-report-skill --all -g -y` in your terminal to install the skill globally.

How to profile a CUDA kernel with Nsight Compute?โ–ผ

The skill walks you through building a standalone harness, running ncu full and source-level profiles, and parsing results with the ncu_report Python API. It then guides analysis across six dimensions like occupancy, stalls, and memory.

Why is my CUDA kernel slow on B200?โ–ผ

The included diagnosis playbook maps Nsight Compute signals to likely causes and concrete fixes, such as load imbalance on variable-length inputs or L1 latency-bound stalls. It helps you cite exact metric values instead of guessing.

Does ncu-report-skill work on GPUs other than B200?โ–ผ

Yes. The workflow and helper scripts run on any GPU Nsight Compute supports, though metric names are optimized for B200 sm_100 and may differ on A100 or H100.

Can I use the helper scripts without an AI agent?โ–ผ

Yes. The Python helpers for metric extraction, stall hotspot ranking, and timeline plotting run standalone on any .ncu-rep file from the command line.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’