Bulk fetch metrics from rocm_smi_lib

The RDC provides a wrapper to bulk fetch metrics from rocm_smi_lib.

If the video card does not support bulk fetch or the metrics cannot be
bulk fetched, it will fallback to fetch them one by one.

Change-Id: I8852ba1ed67e0fabc805c93b1080f74c233516e1


[ROCm/rdc commit: 51efe26442]
This commit is contained in:
Bill(Shuzhou) Liu
2021-01-06 09:12:13 -05:00
committed by Shuzhou Liu
parent 0370836c04
commit f41c146bc4
5 changed files with 116 additions and 2 deletions
+1 -1
View File
@@ -507,7 +507,7 @@ void RdciDmonSubSystem::process() {
amd::rdc::fld_id2name_map_t &field_id_to_descript =
amd::rdc::get_field_id_description_from_id();
if (notif_fields.size()>0) {
if (notif_fields.size() > 0) {
ss << "Listening for events: ";
uint32_t i;
for (i = 0; i < notif_fields.size() - 1; ++i) {