<div class="gmail_quote">On Wed, Sep 14, 2011 at 2:42 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com">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 class="im">On Wed, Sep 14, 2011 at 11:30 AM, Justin Holewinski<br>
<<a href="mailto:justin.holewinski@gmail.com">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">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>This seems to be on the right track, but now I'm getting another error:</div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">$ clang -ccc-host-triple ptx32 test1.c -S -O1 -Xclang -target-feature -Xclang sm20</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">error: invalid target feature 'double'</font></div><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><br><br clear="all"><div><br></div>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>