From 2bb7d9cfe830140823d2247686c9670bb7bd5b04 Mon Sep 17 00:00:00 2001 From: Shweta Khatri Date: Wed, 15 Mar 2023 16:27:45 -0400 Subject: [PATCH] By default, disable mwaitx feature. This can be enabled by setting HSA_ENABLE_MWAITX=1 Change-Id: I4be00892780beeb8b14c3c5f34aa10b158921bff [ROCm/ROCR-Runtime commit: 83a307c449377bed55c6eb49bc2f83f5339e7633] --- projects/rocr-runtime/runtime/hsa-runtime/core/util/flag.h | 2 +- 1 file changed, 1 insertion(+), 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 685899001d..28e9815bef 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/util/flag.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/util/flag.h @@ -164,7 +164,7 @@ class Flag { image_print_srd_ = (var == "1") ? true : false; var = os::GetEnvVar("HSA_ENABLE_MWAITX"); - enable_mwaitx_ = (var == "0") ? false : true; + enable_mwaitx_ = (var == "1") ? true : false; // Temporary environment variable to disable CPU affinity override // Will either rename to HSA_OVERRIDE_CPU_AFFINITY later or remove completely.