Renamed API amdsmi_dev_get_energy_count to

amdsmi_get_energy_count

grep -rli 'amdsmi_dev_get_energy_count' * | xargs -i@ sed -i
's/amdsmi_dev_get_energy_count/amdsmi_get_energy_count/g' @

Change-Id: Ifba096376069da3b82d0de3e031cc2adb9cc2f7f
This commit is contained in:
Deepak Mewar
2023-02-25 07:59:27 -05:00
committed by Naveen Krishna Chatradhi
parent 394a1b4d67
commit 258a21790b
8 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -1522,7 +1522,7 @@ except AmdSmiException as e:
```
## amdsmi_dev_get_energy_count
## amdsmi_get_energy_count
Description: Get the energy accumulator counter of the device.
@@ -1538,7 +1538,7 @@ Field | Content
`counter_resolution` | counter resolution
`timestamp` | timestamp
Exceptions that can be thrown by `amdsmi_dev_get_energy_count` function:
Exceptions that can be thrown by `amdsmi_get_energy_count` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
@@ -1551,7 +1551,7 @@ try:
print("No GPUs on machine")
else:
for device in devices:
power = amdsmi_dev_get_energy_count(device)
power = amdsmi_get_energy_count(device)
print(power)
except AmdSmiException as e:
print(e)