diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2019-01-15 19:39:32 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2019-01-15 19:39:32 +0000 |
commit | 9355d0dc13c01c80e74f0dd14230356f58a99e55 (patch) | |
tree | c0a3471d5458884c0211a48ac5ed74bcbdd28a95 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 45b511fb05f9073d72c1511bebd772f8e9dd6f35 (diff) | |
download | bcm5719-llvm-9355d0dc13c01c80e74f0dd14230356f58a99e55.tar.gz bcm5719-llvm-9355d0dc13c01c80e74f0dd14230356f58a99e55.zip |
[OpenMP] Fix for nested proc_bind affinity bug
Using proc_bind clause on a nested #pragma omp parallel region
with KMP_AFFINITY set causes an assertion error. This assertion occurs because
the place-partition-var is not properly initialized in the nested master threads.
Trying to get an intuitive result with KMP_AFFINITY + proc_bind is difficult
because of how the KMP_AFFINITY gtid-to-place mapping occurs. This
patch creates an initial place list no matter what affinity mechanism is used.
For KMP_AFFINITY, the place-partition-var is initialized to all the places.
Differential Revision: https://reviews.llvm.org/D55795
llvm-svn: 351227
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions