# I want to know means about CUPTI metrics in details.

**URL:** <https://forums.developer.nvidia.com/t/i-want-to-know-means-about-cupti-metrics-in-details/70050>\
**Category:** CUPTI – CUDA Profiler Tools Interface\
**Created:** [February 1, 2019, 4:13am UTC](https://forums.developer.nvidia.com/t/i-want-to-know-means-about-cupti-metrics-in-details/70050 "2019-02-01T04:13:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![myabcc17](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@myabcc17](https://forums.developer.nvidia.com/u/myabcc17)\
**Post date:** [February 1, 2019, 4:13am UTC](https://forums.developer.nvidia.com/t/i-want-to-know-means-about-cupti-metrics-in-details/70050/1 "2019-02-01T04:13:26Z")

</div>

I would like to know what these metrics mean in detail. I’ve read the document, but I’m not sure what it means. May I have your details?

All of the items below are related to warp.

achieved\_occupancy  
inst\_per\_warp  
sm\_efficiency  
stall\_not\_selected  
warp\_execution\_efficiency  
eligible\_warps\_per\_cycle

---

<div class="post-metadata">

**Author:** ![Greg](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/greg/32/14043_2.png) [@Greg](https://forums.developer.nvidia.com/u/Greg)\
**Post date:** [February 4, 2019, 10:38pm UTC](https://forums.developer.nvidia.com/t/i-want-to-know-means-about-cupti-metrics-in-details/70050/2 "2019-02-04T22:38:14Z")

</div>

I recommend reviewing the Nsight VSE CUDA Profiler documentation on

Issue Efficiency  
[https://docs.nvidia.com/nsight-visual-studio-edition/Nsight\_Visual\_Studio\_Edition\_User\_Guide.htm#Analysis/Report/CudaExperiments/KernelLevel/IssueEfficiency.htm](https://docs.nvidia.com/nsight-visual-studio-edition/Nsight_Visual_Studio_Edition_User_Guide.htm#Analysis/Report/CudaExperiments/KernelLevel/IssueEfficiency.htm)  
  
Achieved Occupancy  
[https://docs.nvidia.com/nsight-visual-studio-edition/Nsight\_Visual\_Studio\_Edition\_User\_Guide.htm#Analysis/Report/CudaExperiments/KernelLevel/AchievedOccupancy.htm](https://docs.nvidia.com/nsight-visual-studio-edition/Nsight_Visual_Studio_Edition_User_Guide.htm#Analysis/Report/CudaExperiments/KernelLevel/AchievedOccupancy.htm)

These metrics are all related to the Streaming Multiprocessor (SM).

achieved\_occupancy is the ratio of active warps (warps resident on SM actively being scheduled) to the maximum number of warps the SM can support. The higher the ooccupancy the more likely the warp scheduler can hide latency. The higher the occupancy likely the lower the number of resources (e.g. registers/thread) per warp.

inst\_per\_warp Is the average number of instructions executed per warp.

sm\_efficiency Is the ratio of cycles that a SM had at least 1 active warp to the total number of cycles executed in the measurement. sm\_activity is a more accurate name. If sm\_efficiency is less than 90% then either there was insufficient work launched (increase thread blocks per launch) or the kernel has a bad tail effect (subset or blocks/warps run longer than the rest). Fix this first.

stall\_not\_selected Is the percentage of active warps that were ready to issue an instruction but the warp scheduler picked a higher priority warp. Is this number is high then part or all of the kernel has sufficient occupancy (active\_warps) to hide instruction latency. If this number is really high then it may be worth decreasing occupancy by trying to use more registers/thread. Each cycle each warp scheduler can pick one eligible warp (active warp that is not stalled) to issue instructions. If there are multiple eligible warps then 1 warp will report the reason selected and the other eligible warps will report not selected.

warp\_execution\_efficiency is the ratio of average active threads per warp per instruction executed to the maximum number of threads per instruction (warp\_size = 32). If this is less than 100% then the kernel has either thread divergence or the kernel was not launched with a multiple of 32 threads per block.

eligible\_warps\_per\_cycle is the number of active warps per cycle that are not stalled. I believe CUPTI measures this at the SM level. In order to issue at maximum rate the SM warp schedulers each have to have 1 eligible warp so for most architectures this number has to be at least 4 so that each warp scheduler has 1.

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 12, 2021, 6:07pm UTC](https://forums.developer.nvidia.com/t/i-want-to-know-means-about-cupti-metrics-in-details/70050/3 "2021-10-12T18:07:14Z")

</div>

Closed on October 12, 2021, 6:07pm UTC


