In this article
Compare all-cycle and not-issued sampling populations, then trace waiting consumers before treating stall samples as a bottleneck.
A report contains large warp-stall samples while issue activity remains useful. Nsight Compute’s ordinary warp-state samples and its not-issued variants observe different cycle populations. Compare those definitions before ranking every large sample as wasted execution time or assigning the root cause to the instruction where the waiting state was recorded.
Name the exact metric family
Preserve the full metric name, unit, source collection and kernel instance. The profiling guide distinguishes states sampled regardless of issue activity from variants incremented only when the scheduler issued no instruction. Similar labels do not establish interchangeable denominators. Do not combine the families into one percentage chart without a defined normalization and a reason that the populations are comparable.
Separate scheduler states from delays
Selected and not-selected are documented scheduler states rather than ordinary true stalls. A warp not selected can coexist with another useful instruction being issued. The goal is not to force every state counter toward zero. Read issue activity and completed useful work before deciding whether a particular observed wait is limiting the kernel.
Locate the waiting consumer
Warp-stall samples are attributed to the consumer instruction waiting on a dependency. The instruction that originally produced or requested the unavailable data can be elsewhere. Use source and SASS context to trace that relationship. Optimizing the sampled source line by appearance alone can miss the load or synchronization that actually created the dependency.
Preserve sampling limitations
Keep the collection mode, relevant interval and any reported sampling-loss information. Samples are observations under the profiler’s conditions, not a complete chronological record of every stalled cycle of every request. Collection passes and statistical coverage matter. An apparent reduction can reflect changed sample population or a different kernel instance rather than a shorter dependency in the intended work.
Compare a dependency hypothesis
Use a harmless repeatable kernel with one identified dependency and checked output. Compare the two sample families alongside issue activity and ordinary completion timing before and after a justified change. Acceptance connects the observation to a limiting path. It does not establish a universal stall ranking or promise a speedup merely because a chart’s largest sampled category became smaller.
Primary references
Nsight Compute Profiling Guide.
Nsight Compute Report and Source Views.
Nsight Compute Command-line Interface.
Related reading: GPU warp scheduling: how ready work hides stalls; GPU profiling: sampling and instrumentation observe different events.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.