From e41b405f53c1e3af83111a635470399d8778dd86 Mon Sep 17 00:00:00 2001 From: Flora Cui Date: Fri, 25 Jul 2025 13:05:52 +0800 Subject: [PATCH] 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 Reviewed-by: Tianci Yin Part-of: --- debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug.cpp b/debug.cpp index bc346e6a28..01979c3b73 100644 --- a/debug.cpp +++ b/debug.cpp @@ -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;