Profile a context-parallel (CP) inference (or training) workflow with NVIDIA Nsight Systems (nsys).
“编程与软件开发”领域的一个 Skill。已为 Claude Code, Codex, OpenCode 及另外 32 个智能体 准备好命令。
完整描述
Profile a context-parallel (CP) inference (or training) workflow with NVIDIA Nsight Systems (nsys). Locates or installs the nsys binary, mocks random features + small Glorot-init weights (or loads a real checkpoint), wraps the end-to-end forward in a torchrun launcher, runs nsys with the right CLI options (cuda/nvtx trace, --pytorch functions-trace/autograd, cudabacktrace, python-backtrace), and auto-annotates high-level module names (TriMul, Pairformer, trunk, diffusion, MSA) via a custom --python-functions-trace JSON — then reads the kernel/NVTX breakdown (Cannon-ring SendRecv vs GEMM, trunk vs diffusion vs confidence). Use once a CP workflow runs end-to-end and you need to see where GPU time and communication go.