[OpenMP] Set default blocktime to 0 for hybrid cpu
Differential Revision:https://reviews.llvm.org/D113012
GitOrigin-RevId: 7a5680233e03c8ac65d4a9bd97c59b3a3b683526
diff --git a/runtime/src/kmp.h b/runtime/src/kmp.h
index 9d12ece..46a95c1 100644
--- a/runtime/src/kmp.h
+++ b/runtime/src/kmp.h
@@ -1081,7 +1081,9 @@
#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))