<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi Justin,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">I don't know where to start even to understand the error. But would like to dig deep more with some guidance. </div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">After passing --cuda-device-only flag, I am seeing the following error:</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Monaco;color:rgb(235,235,235);background-color:rgb(38,44,53)"><span style="font-variant-ligatures:no-common-ligatures">$ ./Main <a href="http://add_tmp.cu">add_tmp.cu</a> --cuda-device-only</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Monaco;color:rgb(235,235,235);background-color:rgb(38,44,53)"><span style="font-variant-ligatures:no-common-ligatures">LLVM ERROR: CommonOptionsParser: failed to parse command-line arguments. [CommonOptionsParser]: Main: Unknown command line argument '--cuda-device-only'. Try: './Main -help'</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Monaco;color:rgb(235,235,235);background-color:rgb(38,44,53)"><span style="font-variant-ligatures:no-common-ligatures">Main: Did you mean '-icp-invoke-only'?</span></p></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 9, 2019 at 1:52 PM Justin Lebar <<a href="mailto:jlebar@google.com">jlebar@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi, there are three errors here.</div><div><br></div><div>> error: cannot find libdevice for sm_20. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice.</div><div dir="ltr"><br></div><div dir="ltr">> error: GPU arch sm_20 is supported by CUDA versions between 7.0 and 8.0 (inclusive), but installation at /usr/local/cuda is 10.0. Use --cuda-path to specify a different CUDA install, pass a different GPU arch with --cuda-gpu-arch, or pass --no-cuda-version-check.</div><div dir="ltr"><br></div><div>If you have ideas how to make these two errors more clear, patches welcome.</div><div><br></div><div>> error: unable to handle compilation, expected exactly one compiler job </div><div><br></div><div>Pass --cuda-device-only or --cuda-host-only. Right now clang is trying to compile both for host and device, and that isn't going to work.</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 9, 2019 at 12:48 PM Aditya Atluri via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">I am trying to make my toy ast matchers to parse cuda code. But I am getting an error (log.txt)</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div><br></div>-- <br><div dir="ltr" class="gmail-m_8282654064084220093gmail-m_1435530130760264513gmail_signature"><div dir="ltr"><div><div><span style="font-family:tahoma,sans-serif">- Aditya Atluri</span><br></div></div></div></div></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div><span style="font-family:tahoma,sans-serif">- Aditya Atluri</span><br></div></div></div></div>