[SWDEV-543308] Revert amdsmi_link_metrics structure change
Moved the bit_rate and max_bandwidth back into links in the
amdsmi_link_metrics_t struct as this change was impacting
other teams. Modified the C and python API's, wrapper, and
CLI accordingly.
Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
[ROCm/amdsmi commit: 645c313f00]
This commit is contained in:
committed by
Arif, Maisam
parent
45d8f954c8
commit
c2bc3ca72e
@@ -6034,8 +6034,8 @@ class AMDSMICommands():
|
||||
|
||||
try:
|
||||
xgmi_metrics_info = amdsmi_interface.amdsmi_get_link_metrics(src_gpu)
|
||||
bitrate = xgmi_metrics_info['bit_rate']
|
||||
max_bandwidth = xgmi_metrics_info['max_bandwidth']
|
||||
bitrate = xgmi_metrics_info['links'][0]['bit_rate']
|
||||
max_bandwidth = xgmi_metrics_info['links'][0]['max_bandwidth']
|
||||
except amdsmi_exception.AmdSmiLibraryException as e:
|
||||
bitrate = "N/A"
|
||||
max_bandwidth = "N/A"
|
||||
|
||||
Reference in New Issue
Block a user