[PATCH] D113140: [OpenMP][NFCI] Introduce the kernel environment for target regions
Johannes Doerfert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 10 22:19:53 PST 2021
jdoerfert added a comment.
In D113140#3123162 <https://reviews.llvm.org/D113140#3123162>, @ye-luo wrote:
>> the kernel environment which contains information passed by the compiler to a GPU kernel.
> DId you mean this environment is baked into kernel at compile time? So there is no additional H2D cost at each call, right?
Yes, this environment is a constant fed into the kernel at compile time.
It will allow us to pass more information, e.g., if you want to support sequentialiazed parallel regions, in a way that caused the "feature" to be removed during compilation.
It also allows us to communicate dynamic information in a way that will make us pay for it only if we "enable" it, e.g., if you don't want printf support on AMDGPU you don't have to pay for a buffer.
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the cfe-commits