[Openmp-commits] [openmp] r230029 - Changed default stack offset for threads on non-Mac architectures to a CACHE_LINE.
Andrey Churbanov
Andrey.Churbanov at intel.com
Fri Feb 20 09:57:58 PST 2015
Author: achurbanov
Date: Fri Feb 20 11:57:58 2015
New Revision: 230029
URL: http://llvm.org/viewvc/llvm-project?rev=230029&view=rev
Log:
Changed default stack offset for threads on non-Mac architectures to a CACHE_LINE.
Modified:
openmp/trunk/runtime/src/kmp.h
Modified: openmp/trunk/runtime/src/kmp.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp.h?rev=230029&r1=230028&r2=230029&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp.h (original)
+++ openmp/trunk/runtime/src/kmp.h Fri Feb 20 11:57:58 2015
@@ -869,7 +869,11 @@ extern unsigned int __kmp_place_core_off
#define KMP_MIN_STKOFFSET (0)
#define KMP_MAX_STKOFFSET KMP_MAX_STKSIZE
-#define KMP_DEFAULT_STKOFFSET KMP_MIN_STKOFFSET
+#if KMP_OS_DARWIN
+# define KMP_DEFAULT_STKOFFSET KMP_MIN_STKOFFSET
+#else
+# define KMP_DEFAULT_STKOFFSET CACHE_LINE
+#endif
#define KMP_MIN_STKPADDING (0)
#define KMP_MAX_STKPADDING (2 * 1024 * 1024)
More information about the Openmp-commits
mailing list