[all-commits] [llvm/llvm-project] f2677a: [CUDA][HIP] Externalize device var in anonymous na...
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Tue Jun 6 09:04:39 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f2677afe91592673663d24a63706c3218c477c1c
https://github.com/llvm/llvm-project/commit/f2677afe91592673663d24a63706c3218c477c1c
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2023-06-06 (Tue, 06 Jun 2023)
Changed paths:
M clang/lib/AST/ASTContext.cpp
A clang/test/CodeGenCUDA/anon-ns.cu
M clang/test/CodeGenCUDA/host-used-device-var.cu
R clang/test/CodeGenCUDA/kernel-in-anon-ns.cu
Log Message:
-----------
[CUDA][HIP] Externalize device var in anonymous namespace
Device variables in an anonymous namespace may be
referenced by host code, therefore they need to
be externalized in a similar way as a static device
variables or kernels in an anonymous namespace.
Fixes: https://github.com/ROCm-Developer-Tools/HIP/issues/3246
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D152164
More information about the All-commits
mailing list