<div class="gmail_quote"><div>Hi Chatsiri,</div><div><br></div><div>Sorry, I made a mistake in my previous mail, NVPTX backend is not included in the 3.1 release. Please checkout llvm from the svn repository, and make sure the NVPTX backend is enabled in your compiled binary. You should see something like this when running llc --version:</div>

<div><br></div><div><div>LLVM (<a href="http://llvm.org/">http://llvm.org/</a>):</div><div>  LLVM version 3.2svn</div><div>  DEBUG build with assertions.</div><div>  Built May 31 2012 (20:31:31).</div><div>  Default target: i386-pc-linux-gnu</div>

<div>  Host CPU: penryn</div><div><br></div><div>  Registered Targets:</div><div>    .... Irrelevant backends are ignored .....</div><div>    nvptx    - NVIDIA PTX 32-bit</div><div>    nvptx64  - NVIDIA PTX 64-bit</div><div>

<br></div></div><div>Then libclc should work as expected.</div><div><br></div><div>Regards,</div><div>Lei Mou</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>Hello Lei Mou,<br>
<br>
   I compile source code of LLVM version 3.1, but Openclc cannot built 
the source codes those. LLVM version 3.1 show as below for new version after 
checkout the head version from LLVM.<br>
<br>
  LLVM (<a href="http://llvm.org/" target="_blank">http://llvm.org/</a>):<br>
  LLVM version 3.1svn<br>
  DEBUG build with assertions.<br>
  Built Jun  5 2012 (16:09:51).<br>
  Default target: x86_64-unknown-linux-gnu<br>
  Host CPU: corei7<br>
<br>
   How should I set flag of building with LLVM before compile Openclc?  See error below.<br><br>$ make<div><br>LLVM-CC nvptx--nvidiacl/lib/convert.cl.bc<br>error: unknown target triple 'nvptx--nvidiacl', please use -triple or -arch<br>



make: *** [nvptx--nvidiacl/lib/convert.cl.bc] Error 1<br>
<br></div>
Thank you,<br>
Chatsiri Rattana <br></div><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div><br>
On Tue, May 29, 2012 at 7:11 PM, Chatsiri Ratana <<a href="mailto:insiderboy@gmail.com" target="_blank">insiderboy@gmail.com</a>> wrote:<br>
><br>
> Hello All,<br>
><br>
>         I try to compile source code with configure.py for building library<br>
> object, but it's represent and error follow as below.<br>
><br>
> $ ./configure.py<br>
> --with-llvm-config=/san01/home/chatsiri/workspacecpp/llvm/Debug+Asserts/bin/llvm-config<br>
> && make<br>
> CXX utils/prepare-builtins.o<br>
> LINK utils/prepare-builtins<br>
> LLVM-AS nvptx--nvidiacl/lib/integer/add_sat.ll.bc<br>
> LLVM-CC nvptx--nvidiacl/lib/convert.cl.bc<br>
> error: unknown target triple 'nvptx--nvidiacl', please use -triple or -arch<br>
> make: *** [nvptx--nvidiacl/lib/convert.cl.bc] Error 1<br>
><br>
> Configure.py defined parameter by default_targets = ['nvptx--nvidiacl',<br>
> 'nvptx64--nvidiacl'].  My view, It's parameter specify system architecture<br>
> from LLVM that source code built  in version of architecture those(i386,<br>
> x64)[1]. Who any idea this error?<br>
><br>
> [1] <a href="http://llvm.org/docs/doxygen/html/dir_1517c77184e85dcdff2c7917c40616d1.html" target="_blank">http://llvm.org/docs/doxygen/html/dir_1517c77184e85dcdff2c7917c40616d1.html</a><br>
> --<br>
> :--------------------------------------------------------<br>
> <a href="http://about.me/chatsiri.ratana" target="_blank">http://about.me/chatsiri.ratana</a><br>
><br>
</div></div>> _______________________________________________<br>
> Libclc-dev mailing list<br>
> <a href="mailto:Libclc-dev@pcc.me.uk" target="_blank">Libclc-dev@pcc.me.uk</a><br>
> <a href="http://www.pcc.me.uk/cgi-bin/mailman/listinfo/libclc-dev" target="_blank">http://www.pcc.me.uk/cgi-bin/mailman/listinfo/libclc-dev</a><br>
><br>
</blockquote></div></div></div><span><font color="#888888"><br><br clear="all"><br>-- <br>:--------------------------------------------------------<br><a href="http://about.me/chatsiri.ratana" target="_blank">http://about.me/chatsiri.ratana</a><br>



</font></span></blockquote></div><br>