[llvm-dev] How to use llvm to compile CUDA to IR?
Hugh Perkins via llvm-dev
llvm-dev at lists.llvm.org
Mon Sep 26 16:11:07 PDT 2016
adding `-emit-llvm` causes ir to be emitted, instead of ptx. However, it's
only emitting the host-side ir, and I need device side ir. (Well... I need
both, but device side is pretty high priority...). Currently I'm doing:
clang++-3.8 -I/usr/local/cuda-7.5/include llvm-sample.cu -emit-llvm -S -o
How to emit device-side ir?
On Mon, Sep 26, 2016 at 3:27 PM, Hugh Perkins <hughperkins at gmail.com> wrote:
> How to use llvm to compile CUDA to IR?
> I have got as far as llvm to ptx, ie/eg:
> clang++-3.8 -I/usr/local/cuda-7.5/include llvm-sample.cu -S -o
> (except the ".ll" is actually ptx...)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev