Renamed API amdsmi_dev_get_power_ave to
amdsmi_get_power_ave grep -rli 'amdsmi_dev_get_power_ave' * | xargs -i@ sed -i 's/amdsmi_dev_get_power_ave/amdsmi_get_power_ave/g' @ Change-Id: Ie10de251d1e7b884b6233af05b37ff7b56075d4b
Tento commit je obsažen v:
odevzdal
Naveen Krishna Chatradhi
rodič
cc1a9d4522
revize
394a1b4d67
@@ -1490,7 +1490,7 @@ except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
## amdsmi_dev_get_power_ave
|
||||
## amdsmi_get_power_ave
|
||||
|
||||
Description: Get the average power consumption of the device
|
||||
|
||||
@@ -1502,7 +1502,7 @@ If a device has more than one sensor, it could be greater than 0.
|
||||
|
||||
Output: the average power consumption
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_dev_get_power_ave` function:
|
||||
Exceptions that can be thrown by `amdsmi_get_power_ave` function:
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
* `AmdSmiParameterException`
|
||||
@@ -1515,7 +1515,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
power = amdsmi_dev_get_power_ave(device)
|
||||
power = amdsmi_get_power_ave(device)
|
||||
print(power)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele