# Anyway to obtain the average SM occupancy

**URL:** <https://forums.developer.nvidia.com/t/anyway-to-obtain-the-average-sm-occupancy/22057>\
**Category:** CUDA Programming and Performance\
**Created:** [April 18, 2011, 8:13am UTC](https://forums.developer.nvidia.com/t/anyway-to-obtain-the-average-sm-occupancy/22057 "2011-04-18T08:13:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichealHou](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@MichealHou](https://forums.developer.nvidia.com/u/MichealHou)\
**Post date:** [April 18, 2011, 8:13am UTC](https://forums.developer.nvidia.com/t/anyway-to-obtain-the-average-sm-occupancy/22057/1 "2011-04-18T08:13:21Z")

</div>

Is there anyway to obtain or calculate the average SM occupancy rate after one block finished its task?

---

<div class="post-metadata">

**Author:** ![Crankie](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Crankie](https://forums.developer.nvidia.com/u/Crankie)\
**Post date:** [April 18, 2011, 9:36am UTC](https://forums.developer.nvidia.com/t/anyway-to-obtain-the-average-sm-occupancy/22057/2 "2011-04-18T09:36:38Z")

</div>

> [@](#):
>
> Is there anyway to obtain or calculate **the average SM occupancy rate** after one block finished its task?

I think NVIDIA Compute Visual Profiler gives lot of statistics that may point to this…!

---

<div class="post-metadata">

**Author:** ![MichealHou](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@MichealHou](https://forums.developer.nvidia.com/u/MichealHou)\
**Post date:** [April 18, 2011, 5:17pm UTC](https://forums.developer.nvidia.com/t/anyway-to-obtain-the-average-sm-occupancy/22057/3 "2011-04-18T17:17:02Z")

</div>

> [@](#):
>
> I think NVIDIA Compute Visual Profiler gives lot of statistics that may point to this…!

Thanks very much. I just read the brief intruction about this profiler from nvidia website. But I am using Linux shell to program and I think its ‘highly configurable tables and graphical views’ will not work. And can I obtain the relavant data in my own program?
