What Is a CUDA Warp Scheduler? Diagnose GPU Bottlenecks with Eligible Warps and Stalls
A CUDA warp scheduler selects a warp resident on an SM subpartition that is ready to issue its next instruction. Even when many warps are resident (active), data dependencies or barriers can leave few warps ready (eligible), so an issue slot may go unused. To understand the scheduler, look beyond occupancy and examine eligible warps, actual issue activity, and the likely bottleneck together. [NVIDIA Nsight Compute Profiling Guide](https://docs.nvidia.com/nsight-compute/ProfilingGuide/) [CUDA C++ Best Practices Guide](https://docs.nvidia.com/cuda/cuda-c-best-practices-guide/)
What Is a CUDA Warp Scheduler? Diagnose GPU Bottlenecks with Eligible Warps and Stalls
A CUDA warp scheduler selects a warp resident on an SM subpartition that is ready to issue its next instruction. Even when many warps are resident (active), data dependencies or barriers can leave few warps ready (eligible), so an issue slot may go unused. To understand the scheduler, look beyond occupancy and examine eligible warps, actual issue activity, and the likely bottleneck together. NVIDIA Nsight Compute Profiling Guide CUDA C++ Best Practices Guide
This article follows NVIDIA CUDA and Nsight Compute online documentation checked on 2026-11-22. Exact counter names and availability can vary by GPU architecture and installed tool version.
How does the warp scheduler issue instructions?
When a CUDA block runs on an SM, its threads are arranged into warps. Nsight Compute calls a warp active when it has been assigned to the scheduler's pool. Active does not mean that it is executing an instruction at that moment. A warp is eligible when its instruction has been decoded, its input dependencies are resolved, and the required execution unit is available. The scheduler can select one eligible warp and issue one or more instructions. If no warp is ready, the corresponding issue slot is skipped. These terms and aggregates are Nsight Compute's analysis model; do not generalize a fixed number of schedulers or a specific policy to every GPU generation. Nsight Compute Profiling Guide — Scheduler Statistics
The relationship can be simplified as follows:
SM sub-partition
Active Warps
├─ instruction/dependency/pipeline not ready → stalled
└─ instruction ready + dependencies resolved + pipeline available
→ Eligible Warps → scheduler selects → Issued Warp
Eligible Warps = 0 → issue slot skippedFor example, warp A may be unable to continue until a value arrives from global memory. If warp B already has the operands it needs, the scheduler can select B instead. This switch hides memory latency by doing independent work. If every resident warp is waiting on a data dependency or a block barrier, however, there may be no eligible warp to select at that moment. CUDA C++ Best Practices Guide — Differences Between Host and Device
Why don't active warps and occupancy guarantee eligible warps?
Occupancy is the ratio of resident active warps on an SM to the maximum number of active warps that the device can support there. It describes how many warps reside, but not whether they can issue an instruction now or whether an instruction is issued each cycle. Nsight Compute reports active, eligible, and issued warps separately in its scheduler statistics. Even at high occupancy, long memory dependencies can leave few eligible warps and low issue activity. A kernel with lower occupancy may still keep a pipeline busy if it has enough independent work. High occupancy alone does not guarantee high performance, and eliminating every stall is not the optimization goal. Nsight Compute Profiling Guide Nsight Compute Compute Triage Guide
| Observation | What it may mean | What to check next |
|---|---|---|
| Many active warps, but few eligible warps and little issue activity | Many warps are resident but may be waiting | Identify the stall reason and determine whether the limit is latency or already-saturated throughput |
Many not_selected samples | A warp may have been eligible while the scheduler selected another warp. Nsight Compute does not treat this alone as a true stall. | Do not mistake selected or not_selected for a wait cause; interpret them with issue-slot utilization |
Prominent long_scoreboard samples | An instruction may be waiting for the result of a memory operation | Trace dependencies backward from the sampled consumer instruction; inspect the source load, access pattern, cache reuse, and independent work |
| Many CTA barrier-wait samples |
Names such as long_scoreboard are sample categories specific to Nsight Compute collection methods and versions. Current Nsight Compute guidance says a memory-dependency sample can be attributed to the consumer instruction waiting for the result, rather than to the load that produced it. Do not assume the source line carrying the sample is itself the slow memory request. selected and not_selected are scheduler states, not true stall causes. Read the metric definitions for your tool version and correlate samples with source and machine-instruction dependencies. Nsight Compute Compute Triage Guide — Warp Stall Breakdown
Which Nsight Compute values should you inspect first?
For CUDA kernels, Nsight Compute's SchedulerStats helps compare theoretical, active, eligible, and issued warps per scheduler. Looking at warp-stall samples in SourceCounters alongside compute and memory throughput in SpeedOfLight can help distinguish an empty issue slot from a pipeline that is already busy. Section names may vary with the installed version, so first check what is available with ncu --list-sections. Nsight Compute Profiling Guide Nsight Compute CLI User Guide
For a Linux shell, a command to inspect an executable looks like this. Replace the executable and its arguments with those for your application, and confirm the section names in your installed version.
ncu --section SchedulerStats --section SourceCounters --section SpeedOfLight ./appCollection may use replay or multiple passes, and the profiler itself adds overhead. Do not treat the duration in an Nsight Compute report as ordinary application runtime. First verify correctness and record a baseline time for the same input in a normal run. Use profiling to locate a cause, then compare any change under the same original timing conditions. Nsight Compute Profiling Guide — Metric Collection and Replay Nsight Compute CLI User Guide
How do you trace a stall and verify a change?
The procedure below assumes a CUDA application, a compatible NVIDIA GPU, the CUDA Toolkit, and an installed version of Nsight Compute. It is a reproducible workflow; no GPU kernel was run or profiled while preparing this article.
**Fix the baseline conditions.** Record the GPU model, compute capability, driver, CUDA and Nsight Compute versions, kernel configuration, and input. Check correctness and measure kernel time over repeated normal, unprofiled runs.
**Inspect scheduler statistics for the target kernel.** In `SchedulerStats`, compare active, eligible, and issued warps and check whether scheduler issue activity is low. Use `ncu --list-sections` to see which analysis sections your installation provides.
**Compare throughput with stall samples.** Check whether the relevant compute or memory pipeline is saturated in `SpeedOfLight`. Only when low issue activity needs explanation, trace representative `SourceCounters` stall samples. Do not assume that one frequently sampled reason is automatically the whole kernel's bottleneck.
**Change one thing that matches the evidence.** For a memory dependency, inspect the consuming instruction, access pattern, reuse, and opportunities for independent work or pipelining. For a barrier, look for imbalance before it or unnecessary synchronization. If few warps are active, check limiting resources such as registers, shared memory, and block configuration. Blindly reducing registers or raising occupancy can cause spills or expose another bottleneck.
**Recheck correctness and real runtime.** Confirm the result remains correct on the same input and compare time outside the profiler under the original conditions. If performance does not improve, revert the change and investigate another cause.
Do not compare AMD wavefront samples with NVIDIA warp counters as if they were the same metrics. For example, AMD's CDNA 3/4 PC-sampling documentation distinguishes states such as WAITCNT, BARRIER_WAIT, and ARBITER_NOT_WIN from SIMD-arbiter state, and specifies the architectures and sampling meanings. AMD also recommends a separate profiling workflow that narrows from system-level analysis to kernel- and instruction-level tools. AMD ROCm Profiling Tool Selection AMD ROCprofiler-SDK — CDNA3/CDNA4 PC Sampling
A warp scheduler selects ready work to help hide latency; it does not remove the cause of a wait or turn high occupancy into fast execution. Diagnose residency, readiness to issue, and actual throughput separately, then validate profiler clues against instruction dependencies and normal runtime.
References
- NVIDIA Nsight Compute Profiling Guide — Scheduler Statistics, Occupancy, and Stall Reasons
- NVIDIA CUDA C++ Best Practices Guide — Latency Hiding
- NVIDIA Nsight Compute Compute Triage Guide — Occupancy and Warp Stall Analysis
- NVIDIA Nsight Compute CLI User Guide
- AMD ROCm — Choosing the Right Profiling Tool
- AMD ROCprofiler-SDK — CDNA3 and CDNA4 PC Sampling