[Openmp-commits] [PATCH] D46260: [OMPT] Fix thread_num for implicit_task_end callbacks in nested parallel regions

Simon Convent via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Apr 30 04:01:05 PDT 2018


sconvent created this revision.
sconvent added reviewers: protze.joachim, Hahnfeld, omalyshe, hbae, jlpeyton.

implicit_task_end callbacks in nested parallel regions did not always give the correct thread_num, since the inner parallel region may have already been finalized. 
Now, the thread_num is stored at the beginning of the implicit task and retrieved at the end, whenever necessary.

A testcase was added as well.


https://reviews.llvm.org/D46260

Files:
  runtime/src/kmp_csupport.cpp
  runtime/src/kmp_gsupport.cpp
  runtime/src/kmp_runtime.cpp
  runtime/src/kmp_threadprivate.cpp
  runtime/src/ompt-internal.h
  runtime/test/ompt/parallel/nested_threadnum.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46260.144533.patch
Type: text/x-patch
Size: 8484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180430/c8a6c9a2/attachment.bin>


More information about the Openmp-commits mailing list