[cfe-users] How to emit device-side IR when compiling CUDA?

Hugh Perkins via cfe-users cfe-users at lists.llvm.org
Mon Sep 26 16:33:47 PDT 2016


( found it: --cuda-device-only   cool :-) )

On Tue, Sep 27, 2016 at 12:17 AM, Hugh Perkins <hughperkins at gmail.com>
wrote:

> I'm trying:
>
> clang++-3.8 -I/usr/local/cuda-7.5/include llvm-sample.cu -emit-llvm -S -o
> llvm-sample.ll
>
> This seems to emit host-side IR only?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20160927/da687a67/attachment.html>


More information about the cfe-users mailing list