diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-05-26 19:09:46 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-05-26 19:09:46 +0000 |
commit | 7ba9baef6ddaa537de83da4e85bf3efc588fb1d7 (patch) | |
tree | 4fe49c09b8e272c3c6863d17fc4080f8257b25c1 /llvm/lib/Support/PrettyStackTrace.cpp | |
parent | 30c080a0854ea37c78b017167f78860b10bf5073 (diff) | |
download | llvm-7ba9baef6ddaa537de83da4e85bf3efc588fb1d7.zip llvm-7ba9baef6ddaa537de83da4e85bf3efc588fb1d7.tar.gz llvm-7ba9baef6ddaa537de83da4e85bf3efc588fb1d7.tar.bz2 |
Fix for OMP_PROC_BIND=spread strategy
The OMP_PROC_BIND=spread strategy fails to assign the master thread the
correct place partition after the first parallel region. Other threads in the
hot team will remember their place_partition, but the master's place partition
is restored to what it was before entering the parallel region. So when the hot
team is used for subsequent parallel regions, the master has lost this info.
This fix calls __kmp_partition_places to update only the master thread's place
partition in the spread case when there are no other changes to the hot team.
Patch by Terry Wilmarth
Differential Revision: http://reviews.llvm.org/D20539
llvm-svn: 270890
Diffstat (limited to 'llvm/lib/Support/PrettyStackTrace.cpp')
0 files changed, 0 insertions, 0 deletions