<div class="gmail_quote">On Wed, Sep 14, 2011 at 2:54 PM, Justin Holewinski <span dir="ltr"><<a href="mailto:justin.holewinski@gmail.com">justin.holewinski@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 class="gmail_quote"><div><div></div><div class="h5">On Wed, Sep 14, 2011 at 2:42 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com" target="_blank">eli.friedman@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>On Wed, Sep 14, 2011 at 11:30 AM, Justin Holewinski<br>
<<a href="mailto:justin.holewinski@gmail.com" target="_blank">justin.holewinski@gmail.com</a>> wrote:<br>
> On Wed, Sep 14, 2011 at 12:31 PM, Arnaud Allard de Grandmaison<br>
> <<a href="mailto:Arnaud.AllardDeGrandMaison@dibcom.com" target="_blank">Arnaud.AllardDeGrandMaison@dibcom.com</a>> wrote:<br>
>><br>
>> Hi Justin<br>
>><br>
>><br>
>><br>
>> You can try the clang’s hidden ‘-llvm’ switch like this :  ‘-llvm<br>
>> –mcpu=mycpu’ to pass options to the backend. I do not know for top of tree,<br>
>> but this works fine with llvm-2.9.<br>
><br>
> Unfortunately, that does not work, at least not with ToT:<br>
> $ clang -ccc-host-triple ptx32 test1.c -S -O1 -mllvm -mattr=double<br>
> clang (LLVM option parsing): Unknown command line argument '-mattr=double'.<br>
>  Try: 'clang (LLVM option parsing) -help'<br>
> clang (LLVM option parsing): Did you mean '-stats=double'?<br>
> For reference, what I want to replace is:<br>
> $ clang -ccc-host-triple ptx32 test1.c -S -O1 -emit-llvm && llc<br>
> -mattr=double test1.s -o test1.ptx<br>
<br>
</div>Try "-Xclang -target-feature -Xclang +double".<br></blockquote><div><br></div></div></div><div>This seems to be on the right track, but now I'm getting another error:</div><div><br></div><div><font face="'courier new', monospace">$ clang -ccc-host-triple ptx32 test1.c -S -O1 -Xclang -target-feature -Xclang sm20</font></div>

<div><font face="'courier new', monospace">error: invalid target feature 'double'</font></div></div></blockquote><div><br></div><div>Sorry, bad copy-paste job.  Replace sm20 with double.  sm20 should also be a valid option for the back-end.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote"><div> </div><div>Does this just not work yet for non-native targets?</div><div><br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font color="#888888"><br>
-Eli<br>
</font></blockquote></div><font color="#888888"><br><br clear="all"><div><br></div>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>