summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/test/misc_bugs/teams-reduction.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix alignment in teams-reduction.c testJonas Hahnfeld2017-12-051-1/+6
| | | | | | | | | | The runtime will use the global kmp_critical_name as a lock and tries to atomically store a pointer in there. This will fail if the global is only aligned by 4 bytes, the size of one int32_t element. Use a union to ensure the global is aligned to the size of a pointer on the current platform. llvm-svn: 319811
* Fix PR30890: Reduction across teams hangsJonas Hahnfeld2017-12-051-0/+63
__kmpc_reduce_nowait() correctly swapped the teams for reductions in a teams construct. Apply the same logic to __kmpc_reduce() and __kmpc_reduce_end(). Differential Revision: https://reviews.llvm.org/D40753 llvm-svn: 319788
OpenPOWER on IntegriCloud