Change the clean shader API to clean local data

To be align with the unified API.

Change-Id: I2819339fba6f528204cebd3e9605109e82cbc5b4
This commit is contained in:
Bill(Shuzhou) Liu
2024-06-13 14:13:46 -05:00
parent 94cab382bf
commit e3c63628e5
10 changed files with 31 additions and 39 deletions
+3 -4
View File
@@ -2831,17 +2831,16 @@ def amdsmi_set_gpu_process_isolation(
)
def amdsmi_set_gpu_run_cleaner_shader(
def amdsmi_clean_gpu_local_data(
processor_handle: amdsmi_wrapper.amdsmi_processor_handle,
sclean: int,
):
if not isinstance(processor_handle, amdsmi_wrapper.amdsmi_processor_handle):
raise AmdSmiParameterException(
processor_handle, amdsmi_wrapper.amdsmi_processor_handle
)
_check_res(
amdsmi_wrapper.amdsmi_set_gpu_run_cleaner_shader(
processor_handle, sclean
amdsmi_wrapper.amdsmi_clean_gpu_local_data(
processor_handle
)
)