krnopt-cuda-profiling

Identify CUDA bottlenecks from NSYS traces and NCU reports and attribute them to source regions.

Updated May 27, 2026
One-click install
npx skills add https://github.com/igamenovoer/domain-skills --skill krnopt-cuda-profiling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: krnopt-cuda-profiling
Source: https://github.com/igamenovoer/domain-skills/tree/main/domain/cuda/krnopt-cuda-profiling
Command: npx skills add https://github.com/igamenovoer/domain-skills --skill krnopt-cuda-profiling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Identify where CUDA runtime time goes and which kernel or region is the actual bottleneck based on profiling data.

Core Features & Use Cases

  • Profiling-driven bottleneck diagnosis: identify the top kernel or phase consuming runtime and classify bottleneck family (e.g., compute, memory, latency, underfill).
  • Source attribution guidance: map bottlenecks to specific source regions using NVTX ranges and NVTX-correlated profiler views for actionable inspection.
  • Handoff and workflow guidance: provide structured handoffs to downstream optimization or architecture-change skills.

Quick Start

Profile with NSYS to identify the dominant kernels, then run NCU on those kernels to classify bottlenecks and attribute them to the corresponding source regions.

Frequently Asked Questions about krnopt-cuda-profiling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify CUDA bottlenecks from profiling data?

CUDA bottleneck diagnosis works by analyzing NSYS traces to find the top runtime-consuming kernels, then using NCU reports to classify the bottleneck family and attribute it to specific source regions.

What is the best way to attribute CUDA runtime bottlenecks to specific source regions?

The best way to attribute CUDA bottlenecks to source regions is by using NVTX ranges and NVTX-correlated profiler views, which map runtime bottlenecks directly to actionable code inspection points.

How does NCU report analysis classify CUDA kernel bottlenecks?

NCU report analysis classifies CUDA kernel bottlenecks into specific families such as compute, memory, latency, or underfill, helping you understand the exact nature of the runtime limitation.

Do I need NVTX ranges to diagnose CUDA kernel bottlenecks with NSYS and NCU?

You need NVTX ranges to accurately attribute CUDA kernel bottlenecks to specific source regions, as they provide correlated profiler views that map runtime bottlenecks to actionable code inspection points.

What is the correct profiling workflow to find the dominant kernel consuming CUDA runtime?

The correct profiling workflow to find the dominant kernel consuming CUDA runtime is to first profile with NSYS to identify top kernels, then run NCU on those kernels to classify and attribute bottlenecks.

Can I get structured handoff guidance after diagnosing a CUDA bottleneck?

You can get structured handoff guidance after diagnosing a CUDA bottleneck, which provides seamless transitions to downstream optimization or architecture-change skills for further action.