From 7a5680233e03c8ac65d4a9bd97c59b3a3b683526 Mon Sep 17 00:00:00 2001 From: Nawrin Sultana Date: Mon, 25 Oct 2021 14:01:56 -0500 Subject: [PATCH] [OpenMP] Set default blocktime to 0 for hybrid cpu Differential Revision:https://reviews.llvm.org/D113012 --- openmp/runtime/src/kmp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h index 9d12ece6b165..46a95c1826f5 100644 --- a/openmp/runtime/src/kmp.h +++ b/openmp/runtime/src/kmp.h @@ -1081,7 +1081,9 @@ extern void __kmp_init_target_mem(); #define KMP_MIN_BLOCKTIME (0) #define KMP_MAX_BLOCKTIME \ (INT_MAX) /* Must be this for "infinite" setting the work */ -#define KMP_DEFAULT_BLOCKTIME (200) /* __kmp_blocktime is in milliseconds */ + +/* __kmp_blocktime is in milliseconds */ +#define KMP_DEFAULT_BLOCKTIME (__kmp_is_hybrid_cpu() ? (0) : (200)) #if KMP_USE_MONITOR #define KMP_DEFAULT_MONITOR_STKSIZE ((size_t)(64 * 1024))