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.