[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 07:27:44 PDT 2016


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
llvm-sample.ll

(except the ".ll" is actually ptx...)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160926/2f1e62c6/attachment.html>


More information about the llvm-dev mailing list