Renamed API amdsmi_dev_get_subsystem_name to
amdsmi_get_gpu_subsystem_name grep -rli 'amdsmi_dev_get_subsystem_name' * | xargs -i@ sed -i 's/amdsmi_dev_get_subsystem_name/amdsmi_get_gpu_subsystem_name/g' @ Change-Id: Ib6f2b03f824e1ee910cfbbd0bab09ad859ec252b
This commit is contained in:
کامیت شده توسط
Naveen Krishna Chatradhi
والد
14f1367d6b
کامیت
82dbd07b2c
@@ -3015,7 +3015,7 @@ except AmdSmiException as e:
|
||||
```
|
||||
|
||||
|
||||
## amdsmi_dev_get_subsystem_name
|
||||
## amdsmi_get_gpu_subsystem_name
|
||||
Description: Get the name string for the device subsytem
|
||||
|
||||
Input parameters:
|
||||
@@ -3024,7 +3024,7 @@ Input parameters:
|
||||
|
||||
Output: device subsytem
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_dev_get_subsystem_name` function:
|
||||
Exceptions that can be thrown by `amdsmi_get_gpu_subsystem_name` function:
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
* `AmdSmiParameterException`
|
||||
@@ -3037,7 +3037,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
subsystem_nam = amdsmi_dev_get_subsystem_name(device)
|
||||
subsystem_nam = amdsmi_get_gpu_subsystem_name(device)
|
||||
print(subsystem_nam)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
|
||||
مرجع در شماره جدید
Block a user