Open Quuxplusone opened 3 years ago
Bugzilla Link | PR51645 |
Status | NEW |
Importance | P release blocker |
Reported by | Carlos Galvez (carlosgalvezp@gmail.com) |
Reported on | 2021-08-27 02:53:06 -0700 |
Last modified on | 2021-09-08 00:53:15 -0700 |
Version | unspecified |
Hardware | PC Linux |
CC | alexfh@google.com, carlosgalvezp@gmail.com, djasper@google.com, klimek@google.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
The problem is not there if I run clang-tidy like this:
clang-tidy -checks=-*,cppcoreguidelines*,...
I.e. if I first disable all checks (-*) and then I add the ones I want.
Why would that be? I want to enable all checks by default and then opt-out of
the ones I'm not interested in. Maintaining a list of checks to opt-in is
tedious and easy to miss on good checks.
Hi again,
I've bisected the issue and it seems it was introduced in this commit:
2935737da32dd21bf02e1a3c912a340de660d557
Clang trunk doesn't have the issue with "cuda-diagnostic-unknown-cuda-version",
but still complains about "unused command-line" "-Xptxas -Werror".
Probably the reason why clang trunk no longer complains about "unknown cuda version" is that it now supports CUDA 11.4 and we are using 10.2.
Still I think disabling such a warning should work for clang-tidy. Would it be possible to add a unit test to run clang-tidy on CUDA code and prevent these issues in the future? I've seen also segfaults on some commits so I think it would be a good idea to have a test in place.