[Openmp-commits] [PATCH] D111789: [OpenMP][OMPT] ompt_parallel_invoker_program used when clang generates the code of parallel if(0)-serialized regions
Vladimir Inđić via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Nov 30 03:25:08 PST 2021
vladaindjic updated this revision to Diff 390654.
vladaindjic added a comment.
As @protze.joachim suggested, __kmpc_end_serialized_parallel is not called from within the runtime code on host.
Instead, __kmp_end_serialized_parallel function has been created by copying the body
of __kmpc_ counterpart. Its parameters list has been extended with the “invoker” parameter
responsible to distinct whether the parallel region’s wrapper function is called
by the runtime code or the OpenMP program directly. The later one corresponds to the
parallel construct that contains if(0) clause compiled with clang.
The “foo” function is introduced to improve the tests clarification, while the “burn_CPU” has been removed.
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 22450 bytes
Desc: not available
More information about the Openmp-commits