<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 28, 2015 at 1:30 PM, Guray Ozen (BSC) via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
Sorry if this email is off topic. I'm quite new here.<br>
<br>
Recently I came across with gpucc[1] open-source cuda compiler. I'm
wondering that is it same thing compiling CUDA with clang[2], or
it's a something branch of clang front-end ?</div></blockquote><div><br></div><div>gpucc is using Clang and LLVM, and most of it has already made it into LLVM and Clang upstream. Especially the LLVM parts (optimizations) are all there. As you found, link [2] provides some details on how to use it. Upstreaming work is still ongoing. There are many patches running for this on cfe-commits, for example <a href="http://llvm.org/viewvc/llvm-project?rev=253389&view=rev">http://llvm.org/viewvc/llvm-project?rev=253389&view=rev</a> and others (note most of them have [CUDA] in the subject, so it's each to search for).</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">Because I can see its
optimizations codes at NVPTX backend target / LLVM. Also as I
understood, it's doing all optimizations in the LLVM-IR level. Is
there any truth to something ? <br></div></blockquote><div><br></div><div>Optimizations are done in the various LLVM stages, mostly LLVM IR. The device-side product is PTX, which the NVIDIA driver further optimizes and lowers to GPU-specific ISA.</div><div><br></div><div>Eli</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">
<br>
<br>
[1] <a href="https://www.youtube.com/watch?v=JHfb8z-iSYk" rel="nofollow" style="margin:0px;padding:0px;border:0px;text-decoration:none;color:rgb(102,17,204);font-family:Arial,Helvetica,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)" target="_blank">https://www.youtube.com/watch?v=JHfb8z-iSYk</a><br>
[2]<a href="http://llvm.org/docs/CompileCudaWithLLVM.html" rel="nofollow" style="margin:0px;padding:0px;border:0px;text-decoration:none;color:rgb(102,17,204);font-family:Arial,Helvetica,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)" target="_blank">http://llvm.org/docs/CompileCudaWithLLVM.html</a>
<br>
<br>
WARNING / LEGAL TEXT: This message is intended only for the use of the
individual or entity to which it is addressed and may contain
information which is privileged, confidential, proprietary, or exempt
from disclosure under applicable law. If you are not the intended
recipient or the person responsible for delivering the message to the
intended recipient, you are strictly prohibited from disclosing,
distributing, copying, or in any way using this message. If you have
received this communication in error, please notify the sender and
destroy and delete any copies you may have received.
<br><br>
<a href="http://www.bsc.es/disclaimer.htm" target="_blank">http://www.bsc.es/disclaimer</a>
<br>
</div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div></div>