ncu-report-skill
/ncu-report-skill
Profiluje system serwowania LLM na kartach NVIDIA L40 narzędziami Nsight, a potem diagnozuje wybrane jądro CUDA na podstawie dowodów.
- Autor
- Infini-AI-Lab ↗
- Repozytorium
- Server-Bench ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 05.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 23
- Skrypty
- 5
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 4
Brak sygnałów. Repozytorium zmienione 05.11.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 5 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: helpers/analyze_reports.py, helpers/extract_stall_hotspots.py, helpers/list_flashinfer_workloads.py, helpers/ncu_utils.py, helpers/plot_timeline.py
Co robi i kiedy
Profiluje system serwowania LLM na kartach NVIDIA L40 narzędziami Nsight, a potem diagnozuje wybrane jądro CUDA na podstawie dowodów.
Oryginalny opis (EN)
Profile an LLM serving system on NVIDIA L40 with Nsight Systems, then diagnose a profile-selected CUDA kernel with Nsight Compute. Use for CPU/GPU timelines, launch gaps, synchronization, kernel filtering, NCU reports, or evidence-backed optimization plans.
Jak działa
- Workflow
- Collection shapes
- Full copied tree
- Primary sources
Podgląd SKILL.md
---
name: ncu-report-skill
description: Profile an LLM serving system on NVIDIA L40 with Nsight Systems, then diagnose a profile-selected CUDA kernel with Nsight Compute. Use for CPU/GPU timelines, launch gaps, synchronization, kernel filtering, NCU reports, or evidence-backed optimization plans.
---
# Nsight profiling for the instructed L40 tasks
This is optional profiling help, not the serving iteration/publication loop.
Use cheap supplied correctness/replay or focused microbenchmark feedback and
publish asynchronous checkpoints frequently; do not wait for a profiler chain
or an elaborate evidence dossier. Keep all scripts/results under /workspace/agentx.
The public protocol command checks protocol, native token IDs and declared
context handling; it does not check output correctness, which is verified
privately after the run. Build your own correctness checks.
When doing full 1800-second AgentX, skip redundant lightweight replay; actual
replay fidelity is included. Both gates remain mandatory for final acceptance.
This instructed bundle includes the full former upstream skill tree for
reference, but its original top-level workflow targeted B200 / `sm_100`.
These tasks run on Ada L40 / `sm_89`. This file and
[`references/00-l40-serving-workflow.md`](references/00-l40-serving-workflow.md)
override every B200-specific target, metric name, hardware budget, and
programming recommendation elsewhere in the copied tree.
The task brief and delivered evaluator are authoritative. Profilers explain
performance; they do not measure an unperturbed verdict. Only the complete
1,800-second AgentX `--measure-only` replay measures TTFT/TPOT and the task's
objective, `dollars_per_dollar`. `--check-protocol-context` is separate.
## Workflow
1. Start with Nsight Systems on a bounded, representative serving interval.
Trace CUDA, NVTX, and OS runtime activity with CPU sampling disabled. Mark
admission, scheduling, batch construction, prefill, decode, sampling, output
retirement, and cache operations with NVTX.
2. Read the timeline and CUDA/NVTX summaries. Name the actual critical path:
host scheduling, synchronization, launch gaps, copies, prefill, decode,
communication, or a cumulative kernel family.
3. Move to Nsight Compute only for a kernel that the system trace showed to
matter. Use the real dtype/layout/shape/cache state in a deterministic
harness, compile with line information, and filter to one or a few warmed
launches.
4. Diagnose from evidence: launch geometry and occupancy; compute and memory
throughput; register/shared-memory limits; memory transactions; scheduler
and warp-stall data; source/SASS correlation. Query the L40's available
metric names rather than copying the bundled B200 metric table.
5. State one falsifiable optimization hypothesis and its Amdahl ceiling. Verify
independent numerical parity and boundaries, then use an interleaved
microbenchmark only to reject weak candidates.
6. Re-profile after integration. Run the public correctness gate separately.
Choose a full AgentX window whenever workload feedback is useful; cheap
tests are not prerequisites, and none of these steps blocks checkpointing.
## Collection shapes
Nsight Systems:
nsys profile --trace=cuda,nvtx,osrt --sample=none \
--force-overwrite=true --output=<unique-prefix> <command>
nsys stats --report cuda_api_sum --report cuda_gpu_kern_sum \
--report cuda_kern_exec_sum --report nvtx_sum <report>.nsys-rep
Nsight Compute, overview followed by a focused full collection:
ncu --set basic --target-processes all \
--kernel-name 'regex:<kernel-pattern>' --launch-skip <warmups> \
--launch-count 1 --export <unique-basic-report> <command>
ncu --set full --target-processes all \
--kernel-name 'regex:<kernel-pattern>' --launch-skip <warmups> \
--launch-count 1 --export <unique-full-report> <command>
ncu --import <report>.ncu-rep --page details
Use unique output paths and verify process, device, kernel, input shape, and
candidate identity before reading a report. Nsight Compute may replay a kernel
many times and substantially perturb execution. Never use its duration as a
service latency.
## Full copied tree
The former `reference/`, `helpers/`, and Blackwell companion files remain in
this instructed bundle so none of the previous skill was discarded. Their
report-parsing and organizational ideas may still be useful. Any file that
states B200, Blackwell, `sm_100`, or a B200-only metric is non-authoritative for
these tasks. The L40 workflow above and the current tool's enumerated metrics
take precedence.
## Primary sources
- NVIDIA Nsight Systems User Guide:
https://docs.nvidia.com/nsight-systems/UserGuide/
- NVIDIA Nsight Compute documentation and CLI manual:
https://docs.nvidia.com/nsight-compute/
- NVIDIA CUDA Programming and Best Practices guides:
https://docs.nvidia.com/cuda/cuda-programming-guide/
and https://docs.nvidia.com/cuda/cuda-c-best-practices-guide/
Pliki w paczce (23)
- .gitignore 1 KB
- README.md 7 KB
- SKILL.md 5 KB
- blackwell-cuda-programming.md 44 KB
- helpers/README.md 3 KB
- helpers/analyze_reports.py 4 KB
- helpers/extract_stall_hotspots.py 6 KB
- helpers/harness_template.cu 8 KB
- helpers/list_flashinfer_workloads.py 11 KB
- helpers/ncu_utils.py 12 KB
- helpers/plot_timeline.py 5 KB
- helpers/safetensors_loader.h 7 KB
- reference/00-directory-layout.md 8 KB
- reference/01-workflow.md 10 KB
- reference/02-harness-guide.md 11 KB
- reference/03-collection.md 7 KB
- reference/04-python-api.md 9 KB
- reference/05-analysis-dimensions.md 15 KB
- reference/06-diagnosis-playbook.md 15 KB
- reference/07-report-template.md 6 KB
- reference/08-b200-metric-names.md 11 KB
- reference/09-common-issues.md 9 KB
- references/00-l40-serving-workflow.md 3 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · Infini-AI-Lab/Server-Bench | 90 | Apache-2.0 |
| ariesfish/pi-kernel-expert | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki c6efe3af70e3 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90kernel-flow
Prowadzi optymalizację kernela CUDA na GPU NVIDIA: pomiar wąskiego gardła w Nsight Compute i weryfikację poprawności. - 100cuda-profiling
Prowadzi profilowanie kerneli CUDA w Nsight Systems i Nsight Compute: modele roofline, kernele ograniczone pamięcią lub obliczeniami oraz znaczniki NVTX. - 100kernel-profiling-nsight
Profiluje pracę GPU w Nsight Systems i Nsight Compute: czyta oś czasu, nazywa klasę wąskiego gardła i wskazuje metrykę, która określa poprawkę. - 100nvidia-tensorrt-llm-perf-nsight-systems
Obsługuje CLI Nsight Systems (nsys) do profilowania osi czasu: nsys profile, analiza raportów .nsys-rep, nsys stats, diagnoza bezczynności GPU i nakładania NCCL w treningu rozproszonym. - 100perf-nsight-systems
Obsługuje CLI Nsight Systems (nsys) do profilowania osi czasu systemu: profile, raporty .nsys-rep, nsys stats, bezczynność GPU i trening rozproszony z nakładaniem NCCL. - 100nsys-optimizer
Optymalizuje kod symulacji CUDA i GPU na podstawie profilowania NVIDIA Nsight Systems, wskazuje wąskie gardła i prowadzi całą pętlę optymalizacji, na przykład gdy jedna scena działa wolniej.