What’s the restriction of combining?? <<NVIDIA_Nsight_Perf_SDK_2023.3_Getting_Started_Guide_rev20>> haven’t introducing how to combine three Enumerated values.
Hello [450458340],
If I understand correctly, you are trying to combine the metric base name (something like smsp__warps_launched without any suffices) with these 3 attributes to form a metric name. If so, I hope the following information can help you:
-
If a metric’s type is NVPW_METRIC_TYPE_COUNTER, you can use the following formula: <metric base name>.<RollupOp>(.<Submetric>), where is optional. One example is, gpc__cycles_elapsed.avg.per_second.
-
If a metric’s type is NVPW_METRIC_TYPE_RATIO, you can use this: <metric base name>.<Submetric>. For example, lts__average_t_sector_hit_rate_realtime.pct.
-
If a metric’s type is NVPW_METRIC_TYPE_THROUGHPUT, the format is the same as NVPW_METRIC_TYPE_COUNTER but the Submetric field is not optional.
Note: The supported submetrics of different NVPW_METRIC_TYPEs are different, you can query them by NVPW_MetricsEvaluator_GetSupportedSubmetrics and then apply the above formulas.
Let me know if you have more questions!
Thanks.
Thank you very much! I get it.
hi, there any demo code?
In the latest Nsight Perf SDK 2025.1, we added a sample (\Samples\NvPerfUtility\tools\MetricsEnumerator) which demos how to enumerate the base metric names and the type of each metric (counter, ratio and throughput). You can also find the pre-generated metrics list under NvPerf\doc\metrics. With the metric types, you can append the proper suffices ((.)) as I mentioned on Jan 15.
In the user guide of 2025.1, we have also added more documentation in the “Metric System” section.
Hope that helps.