[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 13:30:07 PDT 2020
hliao added a comment.
In D80858#2170547 <https://reviews.llvm.org/D80858#2170547>, @tra wrote:
> Would it work if we generate a globally unique visible aliases for the static vars and use the alias' name to register device-side entities without changing their visibility?
We still need to define how a `static` device variable should be visible on the host side. How that behaves in the context of relocatable code generation as well as anonymous namespaces. Also, in the context of CUDA runtime/driver API, if a device variable is addressable on the host side through the runtime API, it should be addressable through the driver API as well. However, the naming will be a big challenge.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80858/new/
https://reviews.llvm.org/D80858
More information about the cfe-commits
mailing list