Skip to content

Commit 5357a98

Browse files
vladaindjicAndreyChurbanov
authored andcommitted
[OpenMP] libomp: Usage of TASK_TIED constant inside kmp_gsupport.cpp
The minor code refactorization introduces the TASK_TIED constant inside kmp_gsupprot.cpp as a replacement for the literal value 1. The mentioned constant is now used in both kmp_tasking.cpp and kmp_gsupport.cpp files. Differential Revision: https://reviews.llvm.org/D110441
1 parent 933182e commit 5357a98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openmp/runtime/src/kmp_gsupport.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ void KMP_EXPAND_NAME(KMP_API_NAME_GOMP_TASK)(void (*func)(void *), void *data,
12341234

12351235
// The low-order bit is the "untied" flag
12361236
if (!(gomp_flags & KMP_GOMP_TASK_UNTIED_FLAG)) {
1237-
input_flags->tiedness = 1;
1237+
input_flags->tiedness = TASK_TIED;
12381238
}
12391239
// The second low-order bit is the "final" flag
12401240
if (gomp_flags & KMP_GOMP_TASK_FINAL_FLAG) {
@@ -1766,7 +1766,7 @@ void __GOMP_taskloop(void (*func)(void *), void *data,
17661766
KMP_ASSERT(arg_align > 0);
17671767
// The low-order bit is the "untied" flag
17681768
if (!(gomp_flags & 1)) {
1769-
input_flags->tiedness = 1;
1769+
input_flags->tiedness = TASK_TIED;
17701770
}
17711771
// The second low-order bit is the "final" flag
17721772
if (gomp_flags & 2) {

0 commit comments

Comments
 (0)