diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-10-13 18:36:22 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-10-13 18:36:22 +0000 |
commit | 33d1d283f6005c4cee367472a3cc2ed278543e8d (patch) | |
tree | b46180f376a3ffbf1a038c53f05b343b3bcb6fa6 | |
parent | 3a9c9e3dcd8ae1c658b6a3361bd159b6ae8cee25 (diff) | |
download | bcm5719-llvm-33d1d283f6005c4cee367472a3cc2ed278543e8d.tar.gz bcm5719-llvm-33d1d283f6005c4cee367472a3cc2ed278543e8d.zip |
Detect final task in GOMP interface.
llvm-svn: 250198
-rw-r--r-- | openmp/runtime/src/kmp_gsupport.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openmp/runtime/src/kmp_gsupport.c b/openmp/runtime/src/kmp_gsupport.c index 48487a3ffd3..2a89aa2f942 100644 --- a/openmp/runtime/src/kmp_gsupport.c +++ b/openmp/runtime/src/kmp_gsupport.c @@ -940,6 +940,10 @@ xexpand(KMP_API_NAME_GOMP_TASK)(void (*func)(void *), void *data, void (*copy_fu if (gomp_flags & 1) { input_flags->tiedness = 1; } + // The second low-order bit is the "final" flag + if (gomp_flags & 2) { + input_flags->final = 1; + } input_flags->native = 1; // __kmp_task_alloc() sets up all other flags |