[rocm_smi.py] --showpower error bugfix
Fix error message in -P for secondary die
Signed-off-by: Elena Sakhnovitch
Change-Id: Ica3c0a83b565d2231fad23389b9378056a0f56b3
[ROCm/amdsmi commit: 2db7e2a312]
This commit is contained in:
committato da
Elena Sakhnovitch
parent
fc4aa3d271
commit
8e8586591a
@@ -1845,7 +1845,10 @@ def showPower(deviceList):
|
||||
"""
|
||||
printLogSpacer(' Power Consumption ')
|
||||
for device in deviceList:
|
||||
if str(getPower(device)) != '0.0':
|
||||
if checkIfSecondaryDie(device):
|
||||
printLog(device, 'Average Graphics Package Power (W)', "Secondary die")
|
||||
printLog(None, "\t\tPrimary die above shows total (primary + secondary) socket power information", None)
|
||||
elif str(getPower(device)) != '0.0':
|
||||
printLog(device, 'Average Graphics Package Power (W)', getPower(device))
|
||||
else:
|
||||
printErrLog(device, 'Unable to get Average Graphics Package Power Consumption')
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user