Change the clean shader API to clean local data

To be align with the unified API.

Change-Id: I2819339fba6f528204cebd3e9605109e82cbc5b4
Este commit está contenido en:
Bill(Shuzhou) Liu
2024-06-13 14:13:46 -05:00
padre 94cab382bf
commit e3c63628e5
Se han modificado 10 ficheros con 31 adiciones y 39 borrados
+3 -4
Ver fichero
@@ -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)
```