[PATCH] D98193: [CUDA][HIP] Allow non-ODR use of host var in device

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 29 11:04:00 PDT 2021


yaxunl added a comment.

In D98193#2656326 <https://reviews.llvm.org/D98193#2656326>, @tra wrote:

> I think we also may want to check that we allow `sizeof(host_var)` in the GPU code.

We have tests for that at line 94 of test/SemaCUDA/device-use-host-var.cu


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

https://reviews.llvm.org/D98193



More information about the cfe-commits mailing list