[PATCH] D80858: [CUDA][HIP] Support accessing static device variable in host code

Michael Liao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 23 11:50:35 PDT 2020


hliao added a comment.

In D80858#2169534 <https://reviews.llvm.org/D80858#2169534>, @yaxunl wrote:

> Another reason is that we need to support it in rdc mode, where different TU can have static var with the same name.


That's an issue of our current RDC support through LLVM IR instead of native code. The name conflicts are introduced as we link all TUs into a single module at IR level. The frontend should not be changed to support that.


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

https://reviews.llvm.org/D80858





More information about the cfe-commits mailing list