Renamed API amdsmi_dev_get_vendor_name to
amdsmi_get_gpu_vendor_name
grep -rli 'amdsmi_dev_get_vendor_name' * | xargs -i@ sed -i
's/amdsmi_dev_get_vendor_name/amdsmi_get_gpu_vendor_name/g' @
Change-Id: Ib31c1387150d0dd268d1bd54cfb43786c7ec41c1
[ROCm/amdsmi commit: 21da55b9df]
This commit is contained in:
committed by
Naveen Krishna Chatradhi
parent
365abf6b0e
commit
60a4679846
@@ -2874,7 +2874,7 @@ try:
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
## amdsmi_dev_get_vendor_name
|
||||
## amdsmi_get_gpu_vendor_name
|
||||
Description: Returns the device vendor name
|
||||
|
||||
Input parameters:
|
||||
@@ -2883,7 +2883,7 @@ Input parameters:
|
||||
|
||||
Output: device vendor name
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_dev_get_vendor_name` function:
|
||||
Exceptions that can be thrown by `amdsmi_get_gpu_vendor_name` function:
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
* `AmdSmiParameterException`
|
||||
@@ -2896,7 +2896,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
vendor_name = amdsmi_dev_get_vendor_name(device)
|
||||
vendor_name = amdsmi_get_gpu_vendor_name(device)
|
||||
print(vendor_name)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
|
||||
Reference in New Issue
Block a user