Fix for OMP doacross implementation on Power
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Wed, 22 Nov 2017 17:15:20 +0000 (17:15 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Wed, 22 Nov 2017 17:15:20 +0000 (17:15 +0000)
commit221e7bb1fc5643cfb9225fc3be395fe3b7e82177
tree97d0a972d573ef763095258001968c8386f8779d
parent318dd729ccdac49d2bf1e67099656e6fae3a9246
Fix for OMP doacross implementation on Power

Power has a weak consistency model so we need memory barriers to
make writes (both from runtime and from user code) available for
all threads.

Differential Revision: https://reviews.llvm.org/D40175

llvm-svn: 318848
openmp/runtime/src/kmp_csupport.cpp
openmp/runtime/test/worksharing/for/kmp_doacross_check.c