[PATCH] D157738: [OpenMP] Emit offloading entries for indirect target variables
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 14 14:33:14 PDT 2023
JonChesterfield added a comment.
> calling device functions via their associated host pointer
What does this mean? Defining a function foo such that the host and each individual target each have their own machine code for it, such that &foo can be copied over to the target and then invoked to mean call the function on the local target with the same name?
If so, calling through the pointer &foo on the GPU doing a logarithmic search through a table to choose a function address to branch to sounds like something that will codegen into very slow code. Does it do that search on every call?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157738/new/
https://reviews.llvm.org/D157738
More information about the cfe-commits
mailing list