[rocm_smi.py] remove repetitive footnote

Printing "Primary die (usually one above or below the secondary) shows
total (primary + secondary) socket power information" footnote only one time, not
for every secondary die.

Signed-off-by: Elena Sakhnovitch
Change-Id: Iae9c5c94945ec38ecdb128a576a4eacafc30a044
このコミットが含まれているのは:
Elena Sakhnovitch authored and Elena Sakhnovitch committed 2021-10-29 08:32:06 -04:00
1 親 ce46fd237a
コミット 15e4fe80e1
1ファイル変更
+6 -2
+6 -2
ファイルの表示
@@ -1859,15 +1859,19 @@ def showPower(deviceList):
@param deviceList: List of DRM devices (can be a single-item list)
"""
secondaryPresent=False
printLogSpacer(' Power Consumption ')
for device in deviceList:
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)
printLog(device, 'Average Graphics Package Power (W)', "N/A (Secondary die)")
secondaryPresent=True
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')
if secondaryPresent:
printLog(None, "\n\t\tPrimary die (usually one above or below the secondary) shows total (primary + secondary) socket power information", None)
printLogSpacer()