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:
Bill(Shuzhou) Liu committed 2024-06-05 12:07:39 -05:00
1 parent 68d8c1ab46
commit 4cf59c4edb
13 files changed
+37 -37

No files matched your search

+3 -3
View File
@@ -2076,7 +2076,7 @@ except AmdSmiException as e:
print(e)
```
### amdsmi_set_gpu_clear_sram_data
### amdsmi_set_gpu_run_cleaner_shader
Description: Clear the SRAM data of the given device. This can be called between user logins to prevent information leak.
Input parameters:
@@ -2086,7 +2086,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`
@@ -2101,7 +2101,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)
```