pfultz2 added a comment.

> What's the expected HD property of this template function clip?

I think it is intended to be host-only. The function `f` will launch a kernel 
or threads to utilize the passed lambda.

Ideally, it would be nice to make all inlineable functions implicitly HD. There 
is a pragma to force HD, but it is broken(due to forcing HD on functions 
annotated as host-only or device-only). It would be nice to have a flag to 
enable such behavior(instead of a pragma). Requiring all these explicit HD 
annotations just seems like we are moving backwards.


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

https://reviews.llvm.org/D78655



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

Reply via email to