wsl/libhsakmt: fix hsaKmtRuntimeDisable ret value

As ROCR exclusively accepts HSAKMT_STATUS_SUCCESS. returning any other
value is treated as an error and will trigger an exit due to failure.

Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Tianci Yin <tianci.yin@amd.com>
Part-of: <http://10.67.69.192/wsl/rocr-runtime/-/merge_requests/95>
Этот коммит содержится в:
Flora Cui authored and Frank Min committed 2025-11-05 18:53:37 +08:00
1 родитель e99fcfee51
Коммит e41b405f53
1 file changed
+1 -1
+1 -1
Просмотреть файл
@@ -78,7 +78,7 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtRuntimeDisable(void) {
HSAKMT_STATUS result = hsaKmtCheckRuntimeDebugSupport();
if (result)
return result;
return HSAKMT_STATUS_SUCCESS;
assert(false);
return HSAKMT_STATUS_SUCCESS;