[PATCH] D80858: [CUDA][HIP] Support accessing static device variable in host code for -fno-gpu-rdc

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 4 21:32:58 PDT 2020


yaxunl added a comment.

In D80858#2193970 <https://reviews.llvm.org/D80858#2193970>, @tra wrote:

> What is expected to happen to device statics in anonymous name spaces? It may be worth adding them to the tests.
>
> LGTM otherwise.

static device var in anonymous name space will have external linkage if it is referenced by host code. will add a test when committing.


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

https://reviews.llvm.org/D80858



More information about the cfe-commits mailing list