[Openmp-commits] [openmp] 7a56802 - [OpenMP] Set default blocktime to 0 for hybrid cpu
Nawrin Sultana via Openmp-commits
openmp-commits at lists.llvm.org
Fri Nov 12 10:12:10 PST 2021
Author: Nawrin Sultana
Date: 2021-11-12T12:05:35-06:00
New Revision: 7a5680233e03c8ac65d4a9bd97c59b3a3b683526
URL: https://github.com/llvm/llvm-project/commit/7a5680233e03c8ac65d4a9bd97c59b3a3b683526
DIFF: https://github.com/llvm/llvm-project/commit/7a5680233e03c8ac65d4a9bd97c59b3a3b683526.diff
LOG: [OpenMP] Set default blocktime to 0 for hybrid cpu
Differential Revision:https://reviews.llvm.org/D113012
Added:
Modified:
openmp/runtime/src/kmp.h
Removed:
################################################################################
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))
More information about the Openmp-commits
mailing list