[Openmp-commits] [PATCH] D113012: Set default blocktime to 0 for hybrid CPU
Nawrin Sultana via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Nov 12 10:12:12 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7a5680233e03: [OpenMP] Set default blocktime to 0 for hybrid cpu (authored by Nawrin).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113012/new/
https://reviews.llvm.org/D113012
Files:
openmp/runtime/src/kmp.h
Index: openmp/runtime/src/kmp.h
===================================================================
--- openmp/runtime/src/kmp.h
+++ openmp/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))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113012.386880.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211112/d5bfdfb1/attachment.bin>
More information about the Openmp-commits
mailing list