[Openmp-commits] [openmp] r256778 - Fix for barrier problem: applications with many parallel regions (2^30) hang
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Mon Jan 4 12:51:49 PST 2016
Author: jlpeyton
Date: Mon Jan 4 14:51:48 2016
New Revision: 256778
URL: http://llvm.org/viewvc/llvm-project?rev=256778&view=rev
Log:
Fix for barrier problem: applications with many parallel regions (2^30) hang
The barrier states type doesn't need to be explicitly set.
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=256778&r1=256777&r2=256778&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp.h (original)
+++ openmp/trunk/runtime/src/kmp.h Mon Jan 4 14:51:48 2016
@@ -1671,9 +1671,9 @@ typedef struct kmp_disp {
#define KMP_BARRIER_UNUSED_BIT 1 /* bit that must never be set for valid state */
#define KMP_BARRIER_BUMP_BIT 2 /* lsb used for bump of go/arrived state */
-#define KMP_BARRIER_SLEEP_STATE ((kmp_uint) (1 << KMP_BARRIER_SLEEP_BIT))
-#define KMP_BARRIER_UNUSED_STATE ((kmp_uint) (1 << KMP_BARRIER_UNUSED_BIT))
-#define KMP_BARRIER_STATE_BUMP ((kmp_uint) (1 << KMP_BARRIER_BUMP_BIT))
+#define KMP_BARRIER_SLEEP_STATE (1 << KMP_BARRIER_SLEEP_BIT)
+#define KMP_BARRIER_UNUSED_STATE (1 << KMP_BARRIER_UNUSED_BIT)
+#define KMP_BARRIER_STATE_BUMP (1 << KMP_BARRIER_BUMP_BIT)
#if (KMP_BARRIER_SLEEP_BIT >= KMP_BARRIER_BUMP_BIT)
# error "Barrier sleep bit must be smaller than barrier bump bit"
More information about the Openmp-commits
mailing list