diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-01-04 20:51:48 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-01-04 20:51:48 +0000 |
commit | 703d4042ad09438bab98741bb69f3a3d7cdda9f3 (patch) | |
tree | 01cb931cf4a37c9bcbfd9eb82e46bdd8ab098d5d /openmp/runtime/src | |
parent | 13ea29b5a14dbcb99f8bed90da3825bc78e8203f (diff) | |
download | bcm5719-llvm-703d4042ad09438bab98741bb69f3a3d7cdda9f3.tar.gz bcm5719-llvm-703d4042ad09438bab98741bb69f3a3d7cdda9f3.zip |
Fix for barrier problem: applications with many parallel regions (2^30) hang
The barrier states type doesn't need to be explicitly set.
llvm-svn: 256778
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r-- | openmp/runtime/src/kmp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h index 66ebf6cbdb3..4dffc84788e 100644 --- a/openmp/runtime/src/kmp.h +++ b/openmp/runtime/src/kmp.h @@ -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" |