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>
Tento commit je obsažen v:
+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;
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele