<p dir="ltr">Hi, Ginu.</p>
<p dir="ltr">No earlier version of llvm supports sm_10. It's not something I have looked at deeply, but I expect adding support would be nontrivial, because one would have to teach the nvptx backend which machine instructions are and are not available in that architecture.</p>
<p dir="ltr">Regards,<br>
-Justin </p>
<div class="gmail_quote">On Jun 2, 2016 12:23 AM, "ginu jacob via llvm-dev" <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello Bergström/Eric,</div><div><br></div>Thanks for the reply. The G80(sm_10) architecture was ported on FPGA by a group of researchers (<a href="http://www.ecs.umass.edu/ece/tessier/andryc-fpt13.pdf" target="_blank">http://www.ecs.umass.edu/ece/tessier/andryc-fpt13.pdf</a>). Our group have some further research interest on this work. I was working on modifying the Clang-LLVM for a couple of months and achieved the required changes. But Clang-LLVM is only allowing me to generate PTX for sm_20, sm_30 etc.While trying to generate PTX for sm_10, it gave <div><i><br></i></div><div><i>error: unknown target CPU 'sm_10'</i><div><i><div>fatal error: cannot open file '/tmp/shared-395893.s': No such file or directory</div><div>1 error generated.</div></i></div><div><br></div><div><div><br></div><div>The compilation command used is: </div><div>clang -Xclang -I$LIBCLC/include/generic -I$LIBCLC/include/ptx -Dcl_clang_storage_class_specifiers -O3 CudaSource.cu -S -o PtxOutput.ptx --cuda-gpu-arch=sm_10</div><div><br></div><div>Is there any chance that this error being generated from CUDA runtime alone since I am using CUDA 7.5 which does not support sm_10. If there is any chance that the error is isolated from LLVM and is only due to CUDA, i have some hope to use a lower CUDA version. Please let me know your suggestions.</div><div><br></div><div><div><div>Thank you,</div><div>Ginu</div><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 2, 2016 at 2:36 PM, C Bergström <span dir="ltr"><<a href="mailto:cbergstrom@pathscale.com" target="_blank">cbergstrom@pathscale.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What happens if you hack change llvm to accept sm_10? Do you get an<br>
error somewhere further down the pipeline?<br>
<br>
sm_10 is pretty old hardware - Why the strong dependency on this?<br>
<div><div><br>
On Thu, Jun 2, 2016 at 1:18 PM, ginu jacob via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
> Hello,<br>
><br>
> When generating the PTX output from CUDA file(.cu file), the minimum target<br>
> that is accepted by LLVM is sm_20. But I have a specific requirement to<br>
> generate PTX output for compute capability 1.0 (sm_10). Is there any<br>
> previous version of LLVM supporting this?<br>
><br>
> Thank you,<br>
> Ginu<br>
><br>
</div></div><div><div>> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
><br>
</div></div></blockquote></div><br></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div>