[cfe-dev] Emit LLVMIR for a CUDA kernel

Navdeep Kumar via cfe-dev cfe-dev at lists.llvm.org
Thu Feb 18 02:35:02 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/20210218/1200d41f/attachment.html>


More information about the cfe-dev mailing list