[cfe-dev] Error while running libtooling based tool on CUDA code

Justin Lebar via cfe-dev cfe-dev at lists.llvm.org
Mon Jun 3 08:52:21 PDT 2019


> 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.

The error seems pretty clear to me?

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.

On Mon, Jun 3, 2019 at 1:22 AM Pradeep Kumar via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Dear clang-developer-community,
>    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.
>
> https://gist.github.com/pradeepisro/57e3ff3dab609a8bcc4f66d029e15a8f
>
> I used the following repo to test
> https://github.com/peter-can-talk/cppnow-2017
>
> the example code is
> 1. cppgrep - libclang tool
> 2. virtual-destructor - libtooling tool
>
> With Regards,
> Pradeep Kumar S.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190603/c48c0854/attachment.html>


More information about the cfe-dev mailing list