Change the clean shader API to clean local data

To be align with the unified API.

Change-Id: I2819339fba6f528204cebd3e9605109e82cbc5b4
이 커밋은 다음에 포함됨:
Bill(Shuzhou) Liu가 2024-06-17 16:23:33 -05:00를 커밋했습니다
1 부모 94cab382bf
커밋 e3c63628e5
10 파일이 변경됨
+31 -39

검색과 일치하는 파일 없음

+3 -4
파일 보기
@@ -2035,17 +2035,16 @@ except AmdSmiException as e:
print(e)
```
### amdsmi_set_gpu_run_cleaner_shader
### amdsmi_clean_gpu_local_data
Description: Clear the local data of the given device. This can be called between user logins to prevent information leak.
Input parameters:
* `processor_handle` handle for the given device
* `sclean` the clean flag. Only 1 will take effect and other number are reserved for future usage.
Output: None
Exceptions that can be thrown by `amdsmi_set_gpu_run_cleaner_shader` function:
Exceptions that can be thrown by `amdsmi_clean_gpu_local_data` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
@@ -2060,7 +2059,7 @@ try:
print("No GPUs on machine")
else:
for device in devices:
amdsmi_set_gpu_run_cleaner_shader(device, 1)
amdsmi_clean_gpu_local_data(device)
except AmdSmiException as e:
print(e)
```