Renamed API amdsmi_dev_get_volt_metric to

amdsmi_get_gpu_volt_metric

grep -rli 'amdsmi_dev_get_volt_metric' * | xargs -i@ sed -i
's/amdsmi_dev_get_volt_metric/amdsmi_get_gpu_volt_metric/g' @

Change-Id: Icd34fa435d067815d83b61e84b70b1d78105f8b6
This commit is contained in:
Deepak Mewar
2023-02-25 08:25:12 -05:00
committed by Naveen Krishna Chatradhi
parent d3289258b4
commit 1358f3cfd0
9 changed files with 20 additions and 20 deletions
+3 -3
View File
@@ -1862,7 +1862,7 @@ try:
except AmdSmiException as e:
print(e)
```
## amdsmi_dev_get_volt_metric
## amdsmi_get_gpu_volt_metric
Description: Get the voltage metric value for the specified metric, from the
specified voltage sensor on the specified device
@@ -1873,7 +1873,7 @@ Input parameters:
Output: Voltage as integer in millivolts
Exceptions that can be thrown by ` amdsmi_dev_get_volt_metric` function:
Exceptions that can be thrown by ` amdsmi_get_gpu_volt_metric` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
@@ -1886,7 +1886,7 @@ try:
print("No GPUs on machine")
else:
for device in devices:
voltage = amdsmi_dev_get_volt_metric(device, AmdSmiVoltageType.VDDGFX,
voltage = amdsmi_get_gpu_volt_metric(device, AmdSmiVoltageType.VDDGFX,
AmdSmiVoltageMetric.AVERAGE)
print(voltage)
except AmdSmiException as e: