Unify the amdsmi_get_pcie_info python interface

Make the python interface consistent with the C interface.

Change-Id: Idda08f888947c757e475d5a024b0ec3d8e1d846a
This commit is contained in:
Bill(Shuzhou) Liu authored and Maisam Arif committed 2024-02-22 03:33:59 -05:00
1 parent f58613561c
commit db33cda0c1
7 file changed
+36 -22

No files matched your search

+2 -2
View File
@@ -791,7 +791,7 @@ Output: Dictionary with fields
Field | Description
---|---
`pcie_lanes`| pcie lanes in use
`pcie_width`| pcie lanes in use
`pcie_speed`| current pcie speed
`pcie_interface_version`| current pcie generation
@@ -811,7 +811,7 @@ try:
else:
for device in devices:
pcie_link_status = amdsmi_get_pcie_info(device)
print(pcie_link_status["pcie_lanes"])
print(pcie_link_status["pcie_width"])
print(pcie_link_status["pcie_speed"])
print(pcie_link_status["pcie_interface_version"])
except AmdSmiException as e: