<div dir="ltr">> But the unable to handle compilation, expected exactly one compiler job still exists.<div><br></div><div>This is a new error that I don't see in the original email.  Luckily I know the error you're referring to.  You will need --cuda-device-only or --cuda-host-only.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 3, 2019 at 10:04 PM Pradeep Kumar <<a href="mailto:pradeepisro49@gmail.com">pradeepisro49@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear Justin,<div>    clang-query also results in the same error. I removed the one with no sm_20 by passing cuda-gpu-arch=sm_50 flag. But the unable to handle compilation, expected exactly one compiler job still exists. I think it is because of the dual mode compilation in clang. There are more than two commands in the error string.</div><div><br></div><div>Regards,</div><div>Pradeep</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 3, 2019 at 9:22 PM Justin Lebar <<a href="mailto:jlebar@google.com" target="_blank">jlebar@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">> GPU arch sm_20 is supported by CUDA versions between 7.0 and 8.0 (inclusive), but installation at /usr/local/cuda is 9.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.<br><div><br></div><div>The error seems pretty clear to me?</div><div><br></div><div>You will need to figure out how to get the tool to pass these flags to clang.  That's a question for the tool's author, not for this mailing list.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 3, 2019 at 1:22 AM Pradeep Kumar 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:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear clang-developer-community,<div>   I get the following error while running libtooling based tool on CUDA code but I didn't get the message when running libclang based tool. Please refer the following link for the error.</div><div><br></div><div><a href="https://gist.github.com/pradeepisro/57e3ff3dab609a8bcc4f66d029e15a8f" target="_blank">https://gist.github.com/pradeepisro/57e3ff3dab609a8bcc4f66d029e15a8f</a><br></div><div><br></div><div>I used the following repo to test</div><div><a href="https://github.com/peter-can-talk/cppnow-2017" target="_blank">https://github.com/peter-can-talk/cppnow-2017</a><br></div><div><br></div><div>the example code is </div><div>1. cppgrep - libclang tool</div><div>2. virtual-destructor - libtooling tool</div><div><br></div><div>With Regards,</div><div>Pradeep Kumar S.</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>
</blockquote></div>