[cfe-dev] Error while running libtooling based tool on CUDA code
Pradeep Kumar via cfe-dev
cfe-dev at lists.llvm.org
Mon Jun 3 22:03:58 PDT 2019
Dear Justin,
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.
Regards,
Pradeep
On Mon, Jun 3, 2019 at 9:22 PM Justin Lebar <jlebar at google.com> wrote:
> > 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/20190604/25f579c0/attachment.html>
More information about the cfe-dev
mailing list