[PATCH] D118153: [CUDA][HIP] Do not treat host var address as constant in device compilation
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 25 12:04:07 PST 2022
yaxunl added a comment.
In D118153#3270122 <https://reviews.llvm.org/D118153#3270122>, @tra wrote:
> LGTM.
>
> Do we need to do anything special about `__managed__` vars?
Right `__managed__` var is special. Its address is set by runtime, therefore it is not a constant. nvcc does not treat it as constant either. https://godbolt.org/z/jK534MxfG I will fix it.
BTW I just found a regression related to templates in CodeGenCUDA/host-used-device-var.cu. I will fix that and update this patch.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118153/new/
https://reviews.llvm.org/D118153
More information about the cfe-commits
mailing list