Renamed API amdsmi_dev_set_od_clk_info
to amdsmi_set_gpu_od_clk_info grep -rli 'amdsmi_dev_set_od_clk_info' * | xargs -i@ sed -i 's/amdsmi_dev_set_od_clk_info/amdsmi_set_gpu_od_clk_info/g' @ Change-Id: I0f1fd5a80322a544f7d25e09146c9e52b82091f6
Cette révision appartient à :
révisé par
Naveen Krishna Chatradhi
Parent
2bd94db02c
révision
a72e1ec91d
@@ -1591,7 +1591,7 @@ except AmdSmiException as e:
|
||||
|
||||
|
||||
|
||||
## amdsmi_dev_set_od_clk_info
|
||||
## amdsmi_set_gpu_od_clk_info
|
||||
Description: This function sets the clock frequency information
|
||||
|
||||
Input parameters:
|
||||
@@ -1603,7 +1603,7 @@ or maximum (1) speed
|
||||
|
||||
Output: None
|
||||
|
||||
Exceptions that can be thrown by ` amdsmi_dev_set_od_clk_info` function:
|
||||
Exceptions that can be thrown by ` amdsmi_set_gpu_od_clk_info` function:
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
* `AmdSmiParameterException`
|
||||
@@ -1616,7 +1616,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
amdsmi_dev_set_od_clk_info(
|
||||
amdsmi_set_gpu_od_clk_info(
|
||||
device,
|
||||
AmdSmiFreqInd.AMDSMI_FREQ_IND_MAX,
|
||||
1000,
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur