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.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113140

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to