[PATCH] D78655: [HIP] Let lambda be host device by default

Michael Liao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 29 22:09:39 PDT 2020


hliao added a comment.

In D78655#2011823 <https://reviews.llvm.org/D78655#2011823>, @pfultz2 wrote:

> > says we capture host variable reference in a device lambda.
>
> Is that required to be an error? I know @AlexVlx added support to hcc at one point to capture host variables by reference. So it seems to be possible for it to work correctly. So it doesn't seem to be like reason enough to disallow implicit HD.


Do we have a mechanism to allow device code to access the local auto variable on the host side?


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

https://reviews.llvm.org/D78655





More information about the cfe-commits mailing list