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 c75bffd0f5..95286b8a9d 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/util/flag.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/util/flag.h @@ -154,7 +154,9 @@ class Flag { enable_scratch_async_reclaim_ = (var == "0") ? false : true; var = os::GetEnvVar("HSA_ENABLE_SCRATCH_ALT"); - enable_scratch_alt_ = (var == "0") || !enable_scratch_async_reclaim_ ? false : true; + //Temporary: Disable alternate scratch by default as it can cause occasional hangs + //enable_scratch_alt_ = (var == "0") || !enable_scratch_async_reclaim_ ? false : true; + enable_scratch_alt_ = (var == "1") && enable_scratch_async_reclaim_ ? true : false; tools_lib_names_ = os::GetEnvVar("HSA_TOOLS_LIB");