Change the name of clear sram to run cleaner shader
The function is to clean the local data in LDS/GPRs. The clear sram is misleading. Change-Id: I0385e6d6348602fe0f347d17e48ed8983f7ceb87
This commit is contained in:
@@ -2035,8 +2035,8 @@ except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
### amdsmi_set_gpu_clear_sram_data
|
||||
Description: Clear the SRAM data of the given device. This can be called between user logins to prevent information leak.
|
||||
### amdsmi_set_gpu_run_cleaner_shader
|
||||
Description: Clear the local data of the given device. This can be called between user logins to prevent information leak.
|
||||
|
||||
Input parameters:
|
||||
|
||||
@@ -2045,7 +2045,7 @@ Input parameters:
|
||||
|
||||
Output: None
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_set_gpu_clear_sram_data` function:
|
||||
Exceptions that can be thrown by `amdsmi_set_gpu_run_cleaner_shader` function:
|
||||
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
@@ -2060,7 +2060,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
amdsmi_set_gpu_clear_sram_data(device, 1)
|
||||
amdsmi_set_gpu_run_cleaner_shader(device, 1)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user