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
Bu işleme şunda yer alıyor:
Bill(Shuzhou) Liu
2021-01-06 09:12:13 -05:00
işlemeyi yapan: Shuzhou Liu
ebeveyn ceb562d630
işleme 51efe26442
5 değiştirilmiş dosya ile 116 ekleme ve 2 silme
+1 -1
Dosyayı Görüntüle
@@ -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) {