Renamed API amdsmi_dev_get_pci_bandwidth to
amdsmi_get_gpu_pci_bandwidth grep -rli 'amdsmi_dev_get_pci_bandwidth' * | xargs -i@ sed -i 's/amdsmi_dev_get_pci_bandwidth/amdsmi_get_gpu_pci_bandwidth/g' @ Change-Id: I43e5fc475f933b33770b6c2244232fca811c2036
This commit is contained in:
committed by
Naveen Krishna Chatradhi
parent
1f9074916f
commit
9b76d64944
@@ -1742,7 +1742,7 @@ def _format_transfer_rate(transfer_rate):
|
||||
}
|
||||
|
||||
|
||||
def amdsmi_dev_get_pci_bandwidth(processor_handle: amdsmi_wrapper.amdsmi_processor_handle):
|
||||
def amdsmi_get_gpu_pci_bandwidth(processor_handle: amdsmi_wrapper.amdsmi_processor_handle):
|
||||
if not isinstance(processor_handle, amdsmi_wrapper.amdsmi_processor_handle):
|
||||
raise AmdSmiParameterException(
|
||||
processor_handle, amdsmi_wrapper.amdsmi_processor_handle
|
||||
@@ -1751,7 +1751,7 @@ def amdsmi_dev_get_pci_bandwidth(processor_handle: amdsmi_wrapper.amdsmi_process
|
||||
bandwidth = amdsmi_wrapper.amdsmi_pcie_bandwidth_t()
|
||||
|
||||
_check_res(
|
||||
amdsmi_wrapper.amdsmi_dev_get_pci_bandwidth(
|
||||
amdsmi_wrapper.amdsmi_get_gpu_pci_bandwidth(
|
||||
processor_handle, ctypes.byref(bandwidth))
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user