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


[ROCm/amdsmi commit: 4cf59c4edb]
This commit is contained in:
Bill(Shuzhou) Liu
2024-06-05 12:05:10 -05:00
parent 5e32624382
commit b517f3c214
13 changed files with 37 additions and 37 deletions
@@ -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)
```