<div dir="ltr">Yes, I figured it out in the end, just need `--cuda-device-only`, <a href="https://github.com/hughperkins/cuda-ir-to-opencl/blob/18833aa40b69859c5ca24f22715ad3be2c029ff9/run-ir-to-opencl-demo.sh#L9">https://github.com/hughperkins/cuda-ir-to-opencl/blob/18833aa40b69859c5ca24f22715ad3be2c029ff9/run-ir-to-opencl-demo.sh#L9</a><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 2, 2016 at 6:59 PM, Anastasia Stulova <span dir="ltr"><<a href="mailto:Anastasia.Stulova@arm.com" target="_blank">Anastasia.Stulova@arm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_4523209472760008255divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div id="m_4523209472760008255divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Have you tried to pass the right target triple option?</p>
<p><br>
</p>
<p>i.e. clang -target <target triple you need> ...<br>
</p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_4523209472760008255divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> cfe-dev <<a href="mailto:cfe-dev-bounces@lists.llvm.org" target="_blank">cfe-dev-bounces@lists.llvm.<wbr>org</a>> on behalf of Hugh Perkins via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>><br>
<b>Sent:</b> 27 September 2016 00:15:53<br>
<b>To:</b> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<b>Subject:</b> Re: [cfe-dev] How to emit device-side IR when compiling cuda?</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">I think I'm still in the wrong list. I'll find the right list eventually...<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Sep 27, 2016 at 12:15 AM, Hugh Perkins <span dir="ltr">
<<a href="mailto:hughperkins@gmail.com" target="_blank">hughperkins@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>I'm trying:<br>
<br>
clang++-3.8 -I/usr/local/cuda-7.5/include <a href="http://llvm-sample.cu" target="_blank">
llvm-sample.cu</a> -emit-llvm -S -o llvm-sample.ll<br>
<br>
</div>
This seems to emit host-side IR only?<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>