[all-commits] [llvm/llvm-project] 5cf2a3: [HIP] Emit kernel symbol
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Mon Mar 1 13:32:22 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5cf2a37f1255700d4da9d5f45e82bdfff09aee8c
https://github.com/llvm/llvm-project/commit/5cf2a37f1255700d4da9d5f45e82bdfff09aee8c
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2021-03-01 (Mon, 01 Mar 2021)
Changed paths:
M clang/lib/CodeGen/CGCUDANV.cpp
M clang/lib/CodeGen/CGCUDARuntime.h
M clang/lib/CodeGen/CGExpr.cpp
M clang/lib/CodeGen/CodeGenModule.cpp
M clang/test/CodeGenCUDA/Inputs/cuda.h
A clang/test/CodeGenCUDA/cxx-call-kernel.cpp
M clang/test/CodeGenCUDA/kernel-dbg-info.cu
M clang/test/CodeGenCUDA/kernel-stub-name.cu
M clang/test/CodeGenCUDA/unnamed-types.cu
Log Message:
-----------
[HIP] Emit kernel symbol
Currently clang uses stub function to launch kernel. This is inconvenient
to interop with C++ programs since the stub function has different name
as kernel, which is required by ROCm debugger.
This patch emits a variable symbol which has the same name as the kernel
and uses it to register and launch the kernel. This allows C++ program to
launch a kernel by using the original kernel name.
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D86376
More information about the All-commits
mailing list