[cfe-dev] Emit device side LLVM IR for CUDA C++

Navdeep Kumar via cfe-dev cfe-dev at lists.llvm.org
Tue Feb 16 09:23:07 PST 2021


Hi all,

Does anyone know how to emit LLVM IR for the kernel of a CUDA C++ code?
`clang++ -emit-llvm --cuda-gpu-arch=sm_75 x.cu` somehow only emits code for
the host side code.

Thanks,
Navdeep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210216/3d3e7287/attachment.html>


More information about the cfe-dev mailing list