Renamed API amdsmi_dev_get_gpu_clk_freq
It is renamed to amdsmi_get_clk_freq grep -rli 'amdsmi_dev_get_gpu_clk_freq' * | xargs -i@ sed -i 's/amdsmi_dev_get_gpu_clk_freq/amdsmi_get_clk_freq/g' @ Change-Id: Ia12dd1282ab501f17667cf9f1f9b7284c2648198
This commit is contained in:
1 parent
76eca7892b
commit
56aa8059f8
10 files changed
+25
-25
No files matched your search
@@ -2038,7 +2038,7 @@ try:
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
## amdsmi_dev_get_gpu_clk_freq
|
||||
## amdsmi_get_clk_freq
|
||||
Description: Get the list of possible system clock speeds of device for a
|
||||
specified clock type
|
||||
|
||||
@@ -2054,7 +2054,7 @@ Field | Description
|
||||
`current`| The current frequency index
|
||||
`frequency`| List of frequencies, only the first num_supported frequencies are valid
|
||||
|
||||
Exceptions that can be thrown by ` amdsmi_dev_get_gpu_clk_freq` function:
|
||||
Exceptions that can be thrown by ` amdsmi_get_clk_freq` function:
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
* `AmdSmiParameterException`
|
||||
@@ -2067,7 +2067,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
amdsmi_dev_get_gpu_clk_freq(device, AmdSmiClkType.SYS)
|
||||
amdsmi_get_clk_freq(device, AmdSmiClkType.SYS)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user