[Openmp-commits] [PATCH] D107686: [OpenMP] mark target task untied
Ye Luo via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Aug 6 21:07:30 PDT 2021
ye-luo created this revision.
ye-luo added a reviewer: tianshilei1992.
Herald added subscribers: guansong, yaxunl.
ye-luo requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.
OpenMP specification Tasking Terminology
target task :A mergeable and untied task that ...
https://reviews.llvm.org/D107686
Files:
openmp/runtime/src/kmp_tasking.cpp
Index: openmp/runtime/src/kmp_tasking.cpp
===================================================================
--- openmp/runtime/src/kmp_tasking.cpp
+++ openmp/runtime/src/kmp_tasking.cpp
@@ -1434,11 +1434,12 @@
size_t sizeof_shareds,
kmp_routine_entry_t task_entry,
kmp_int64 device_id) {
- if (__kmp_enable_hidden_helper) {
- auto &input_flags = reinterpret_cast<kmp_tasking_flags_t &>(flags);
+ auto &input_flags = reinterpret_cast<kmp_tasking_flags_t &>(flags);
+ // target task is untied defined in the specification
+ input_flags.tiedness = TASK_UNTIED;
+
+ if (__kmp_enable_hidden_helper)
input_flags.hidden_helper = TRUE;
- input_flags.tiedness = TASK_UNTIED;
- }
return __kmpc_omp_task_alloc(loc_ref, gtid, flags, sizeof_kmp_task_t,
sizeof_shareds, task_entry);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107686.364928.patch
Type: text/x-patch
Size: 951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210807/4fe3abe7/attachment.bin>
More information about the Openmp-commits
mailing list