[Openmp-commits] [openmp] r226464 - Two fixes sent by C.Bergstrom: MB() does real synch for ARM; _Quad is not used when not available.
Andrey Churbanov
Andrey.Churbanov at intel.com
Mon Jan 19 06:00:00 PST 2015
Author: achurbanov
Date: Mon Jan 19 08:00:00 2015
New Revision: 226464
URL: http://llvm.org/viewvc/llvm-project?rev=226464&view=rev
Log:
Two fixes sent by C.Bergstrom: MB() does real synch for ARM; _Quad is not used when not available.
Modified:
openmp/trunk/runtime/src/kmp_os.h
openmp/trunk/runtime/src/kmp_tasking.c
Modified: openmp/trunk/runtime/src/kmp_os.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_os.h?rev=226464&r1=226463&r2=226464&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_os.h (original)
+++ openmp/trunk/runtime/src/kmp_os.h Mon Jan 19 08:00:00 2015
@@ -672,7 +672,7 @@ extern kmp_real64 __kmp_xchg_real64( vol
# endif
#endif /* KMP_OS_WINDOWS */
-#if KMP_ARCH_PPC64
+#if KMP_ARCH_PPC64 || KMP_ARCH_ARM || KMP_ARCH_AARCH64
# define KMP_MB() __sync_synchronize()
#endif
Modified: openmp/trunk/runtime/src/kmp_tasking.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_tasking.c?rev=226464&r1=226463&r2=226464&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_tasking.c (original)
+++ openmp/trunk/runtime/src/kmp_tasking.c Mon Jan 19 08:00:00 2015
@@ -835,7 +835,7 @@ __kmp_task_alloc( ident_t *loc_ref, kmp_
task = KMP_TASKDATA_TO_TASK(taskdata);
// Make sure task & taskdata are aligned appropriately
-#if KMP_ARCH_X86
+#if KMP_ARCH_X86 || !KMP_HAVE_QUAD
KMP_DEBUG_ASSERT( ( ((kmp_uintptr_t)taskdata) & (sizeof(double)-1) ) == 0 );
KMP_DEBUG_ASSERT( ( ((kmp_uintptr_t)task) & (sizeof(double)-1) ) == 0 );
#else
More information about the Openmp-commits
mailing list