Renamed API amdsmi_dev_get_perf_level to
amdsmi_get_gpu_perf_level grep -rli 'amdsmi_dev_get_perf_level' * | xargs -i@ sed -i 's/amdsmi_dev_get_perf_level/amdsmi_get_gpu_perf_level/g' @ Change-Id: I03ba35c943cf4e6182c910cc90c5f979b6dc13ee
This commit is contained in:
committed by
Naveen Krishna Chatradhi
parent
575856eeee
commit
3ce4fa3eec
@@ -1959,7 +1959,7 @@ try:
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
## amdsmi_dev_get_perf_level
|
||||
## amdsmi_get_gpu_perf_level
|
||||
Description: Get the performance level of the device with provided device handle
|
||||
|
||||
Input parameters:
|
||||
@@ -1967,7 +1967,7 @@ Input parameters:
|
||||
|
||||
Output: Performance level as enum value of dev_perf_level_t
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_dev_get_perf_level` function:
|
||||
Exceptions that can be thrown by `amdsmi_get_gpu_perf_level` function:
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
* `AmdSmiParameterException`
|
||||
@@ -1980,7 +1980,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
perf_level = amdsmi_dev_get_perf_level(dev)
|
||||
perf_level = amdsmi_get_gpu_perf_level(dev)
|
||||
print(perf_level)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
|
||||
Reference in New Issue
Block a user