Renamed API amdsmi_dev_get_pci_id to
amdsmi_get_gpu_pci_id
grep -rli 'amdsmi_dev_get_pci_id' * | xargs -i@ sed -i
's/amdsmi_dev_get_pci_id/amdsmi_get_gpu_pci_id/g' @
Change-Id: If5454038cf582bdf3c657f466d0f6eb1dd3c14e0
[ROCm/amdsmi commit: 55ddbdc67e]
Dieser Commit ist enthalten in:
committet von
Naveen Krishna Chatradhi
Ursprung
3c3dc03704
Commit
6bd013ba58
@@ -1313,7 +1313,7 @@ except AmdSmiException as e:
|
||||
```
|
||||
|
||||
|
||||
## amdsmi_dev_get_pci_id
|
||||
## amdsmi_get_gpu_pci_id
|
||||
Description: Get the unique PCI device identifier associated for a device
|
||||
|
||||
Input parameters:
|
||||
@@ -1335,7 +1335,7 @@ BDFID = ((DOMAIN & 0xffffffff) << 32) | ((BUS & 0xff) << 8) |
|
||||
| Function | [ 2: 0] |
|
||||
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_dev_get_pci_id` function:
|
||||
Exceptions that can be thrown by `amdsmi_get_gpu_pci_id` function:
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
* `AmdSmiParameterException`
|
||||
@@ -1348,7 +1348,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
bdfid = amdsmi_dev_get_pci_id(device)
|
||||
bdfid = amdsmi_get_gpu_pci_id(device)
|
||||
print(bdfid)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren