From 700afd2d170cb8c3359c520b660cab9b7272d6db Mon Sep 17 00:00:00 2001 From: jokim-amd <44032736+jokim-amd@users.noreply.github.com> Date: Thu, 14 Aug 2025 18:49:09 -0400 Subject: [PATCH] Re-Enable IPC DMA Bufs by default Let ROCr use the new IPC-DMA bufs path. --- projects/rocr-runtime/runtime/hsa-runtime/core/util/flag.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/util/flag.h b/projects/rocr-runtime/runtime/hsa-runtime/core/util/flag.h index 40c5ee1007..654db1b82f 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/util/flag.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/util/flag.h @@ -242,7 +242,8 @@ class Flag { enable_mwaitx_ = (var == "1") ? true : false; var = os::GetEnvVar("HSA_ENABLE_IPC_MODE_LEGACY"); - enable_ipc_mode_legacy_ = (var == "0") ? false : true; // Legacy mode by default + enable_ipc_mode_legacy_ = (var == "1") ? true : false; + if (os::IsEnvVarSet("HSA_PCS_MAX_DEVICE_BUFFER_SIZE")) { var = os::GetEnvVar("HSA_PCS_MAX_DEVICE_BUFFER_SIZE"); char* end;