[all-commits] [llvm/llvm-project] b46f98: [HIP] fix host-used external kernel (#83870)
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Fri Mar 8 07:51:00 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b46f980454d5ceafc8dab37dbdb1011e333ae6de
https://github.com/llvm/llvm-project/commit/b46f980454d5ceafc8dab37dbdb1011e333ae6de
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2024-03-08 (Fri, 08 Mar 2024)
Changed paths:
M clang/lib/Sema/SemaCUDA.cpp
M clang/lib/Sema/SemaExpr.cpp
M clang/test/CodeGenCUDA/host-used-extern.cu
Log Message:
-----------
[HIP] fix host-used external kernel (#83870)
In -fgpu-rdc mode, when an external kernel is used by a host function
with weak_odr linkage (e.g. explicitly instantiated template function),
the kernel should not be marked as host-used external kernel, since the
host function may be dropped by the linker. Mark the external kernel as
host-used external kernel will force a reference to the external kernel,
which the user may not define in other TU.
Fixes: https://github.com/llvm/llvm-project/issues/83771
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list