[Openmp-commits] [PATCH] D131089: [Libomptarget] Explicitly init / deinit libomptarget from the user
Joseph Huber via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Aug 4 08:56:00 PDT 2022
jhuber6 added a comment.
In D131089#3699811 <https://reviews.llvm.org/D131089#3699811>, @JonChesterfield wrote:
> Whats in liba/libb? In particular do they create the requires_flags calls which could lead to multiple calls into this path
Just a single target region that does nothing
void foo() {
#pragma omp target
{}
}
Every TU calls `requires_flags` with a default value if none given. I actually got rid of that to make even more sure that multiple threads could call the init function.
> Probably also interesting to see where we're hanging, independent on this patch
It seems to be at a later part of initialization, the last debug message I get is the following, so this is probably when we set up the mapping between the host / device I would wager.
Libomptarget --> Image 0x00007ff87c62a0c8 is compatible with RTL libomptarget.rtl.x86_64.so!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131089/new/
https://reviews.llvm.org/D131089
More information about the Openmp-commits
mailing list