<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<div id="divtagdefaultwrapper" 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%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> cfe-dev <cfe-dev-bounces@lists.llvm.org> on behalf of Hugh Perkins via cfe-dev <cfe-dev@lists.llvm.org><br>
<b>Sent:</b> 27 September 2016 00:15:53<br>
<b>To:</b> cfe-dev@lists.llvm.org<br>
<b>Subject:</b> Re: [cfe-dev] How to emit device-side IR when compiling cuda?</font>
<div> </div>
</div>
<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>
</body>
</html>