Fix serial number in rocmCollector

This commit is contained in:
Thomas Roehl 2022-06-05 15:53:39 +02:00
parent 659d0115c0
commit bef807dd44

View File

@ -139,7 +139,7 @@ func (m *RocmSmiCollector) Init(config json.RawMessage) error {
}
if m.config.AddSerialMeta {
serial, ret := rocm_smi.DeviceGetSerial(device)
serial, ret := rocm_smi.DeviceGetSerialNumber(device)
if ret != rocm_smi.STATUS_SUCCESS {
cclog.ComponentError(m.name, "Unable to get serial number for device at index", i, ":", rocm_smi.StatusStringNoError(ret))
} else {