-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Fix clang-tidy errors #84
Comments
This issue has been marked rotten due to no recent activity in the past 90d. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. |
This issue has been marked stale due to no recent activity in the past 30d. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be marked rotten if there is no activity in the next 60d. |
I'd like to come back to this issue and fix clang compilation in raft.
|
This makes RAFT sources compilable with clang. It fixes some fragile code (using `static const` instead of `static constexpr` or `%laneid` in PTX relying on quirks in nvcc which make this happen). RAFT is still not compilable with clang entirely though due to the dependencies: 1. cub has this issue before 1.14: NVIDIA/cub#335 2. libcudacxx has issues with atomic, which should be fixed in >= 1.7.0-ea (wasn't able to verify this yet) 3. libcudacxx has issues with variadic CUDA functions, which is apparently fixed by passing `-Xclang -fcuda-allow-variadic-functions` to clang (wasn't able to verify this yet) 3. cooperative_groups from CUDA does not work with clang 11.0 / 11.1 but only with >= 13 EDIT: this is necessary to close #84 Authors: - Matt Joux (https://github.com/MatthiasKohl) Approvers: - Corey J. Nolet (https://github.com/cjnolet) - Artem M. Chirkin (https://github.com/achirkin) URL: #424
The rust API docs aren't being generated on docs.rapids.ai/cuvs . While the `build.sh docs` script was including the rust api docs, the `ci/build_docs.sh` wasn't. Fix. Authors: - Ben Frederickson (https://github.com/benfred) Approvers: - Corey J. Nolet (https://github.com/cjnolet) - Jake Awe (https://github.com/AyodeAwe) URL: rapidsai/cuvs#84
Describe the bug
In the past we had to disable parsing of
.cu
files inrun-clang-tidy.py
due to difficulties in trying to get them working properly. So, we never tidied our cuda source files!Steps/Code to reproduce bug
Today, if we path this script with the following change:
and then run the script, we get a ton of errors which we never caught before (and thus never fixed). Full list of all the errors in here: run.log
Expected behavior
tidy check should pass on all source files, irrespective of device or host code.
The text was updated successfully, but these errors were encountered: