[PATCH] D116908: [OpenMP][1/3] Introduce the KernelEnvironment into the device runtimes

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 21 17:06:57 PST 2022


jdoerfert added a comment.

In D116908#3262836 <https://reviews.llvm.org/D116908#3262836>, @ye-luo wrote:

> It sounds like such info will be passed from host to the device once per kernel and the performance impact is negligible. Right?

The information is directly baked into the device image (in form of globals). 
The transfer happens as you load the image, basically a few extra bytes per kernel but we had most of the things before as separate globals already anyway.
There is no kernel start cost to speak of, at least I don't expect any.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116908/new/

https://reviews.llvm.org/D116908



More information about the llvm-commits mailing list