[Openmp-commits] [openmp] r250198 - Detect final task in GOMP interface.
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Tue Oct 13 11:36:22 PDT 2015
Author: jlpeyton
Date: Tue Oct 13 13:36:22 2015
New Revision: 250198
URL: http://llvm.org/viewvc/llvm-project?rev=250198&view=rev
Log:
Detect final task in GOMP interface.
Modified:
openmp/trunk/runtime/src/kmp_gsupport.c
Modified: openmp/trunk/runtime/src/kmp_gsupport.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_gsupport.c?rev=250198&r1=250197&r2=250198&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_gsupport.c (original)
+++ openmp/trunk/runtime/src/kmp_gsupport.c Tue Oct 13 13:36:22 2015
@@ -940,6 +940,10 @@ xexpand(KMP_API_NAME_GOMP_TASK)(void (*f
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
More information about the Openmp-commits
mailing list