-
Notifications
You must be signed in to change notification settings - Fork 540
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
Warnings are errors #4075
Warnings are errors #4075
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful! Very happy to see these changes. Just a few tweaks and a couple questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new changes look solid to me. I think this PR has exposed some other issues that cuML should address that are beyond the scope of the PR, but I'd advocate for merging and then doing follow-up cleanup.
In particular, having someone who's very familiar with the algorithm parameters go through and make sure we are using sensible types for sizes and indexing seems like a worthwhile follow-on. I'd be happy to have a crack at that myself if no one else is eager to.
Agree. Can you please create an issue? |
Looks like I need to fix warnings in raft first... |
This this now depends on rapidsai/raft#311 which enables CUBLAS_CHECK_NO_THROW so we don't throw in a destructor. |
rerun tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One very small correction, besides that it should be ready to merge!
Co-authored-by: Dante Gama Dessavre <[email protected]>
… into fix-cuml-warnings-as-errors
Codecov Report
@@ Coverage Diff @@
## branch-21.10 #4075 +/- ##
===============================================
Coverage ? 85.96%
===============================================
Files ? 232
Lines ? 18500
Branches ? 0
===============================================
Hits ? 15904
Misses ? 2596
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@gpucibot merge |
1 similar comment
@gpucibot merge |
Depends on rapidsai/raft#299 Depends on rapidsai/raft#311 Fixes rapidsai#4086 This PR enables -Wall (warnings are errors) and fixes all current compiler warnings. Compiler warnings should almost never be ignored. -Wall helps prevent hard-to-find bugs. Tested with both Release and Debug builds since more warnings are typically reported in debug builds. In any file I touched, I also cleaned up the includes so that they are grouped and sorted and ordered from "near" to "far" (relative to the file that is including). Also cleaned up many instances of `size_t` --> `std::size_t`, however I will leave a global search and replace for a separate PR to make reviewing easier. Authors: - Mark Harris (https://github.com/harrism) Approvers: - Robert Maynard (https://github.com/robertmaynard) - William Hicks (https://github.com/wphicks) - Dante Gama Dessavre (https://github.com/dantegd) URL: rapidsai#4075
Depends on rapidsai/raft#299
Depends on rapidsai/raft#311
Fixes #4086
This PR enables -Wall (warnings are errors) and fixes all current compiler warnings.
Compiler warnings should almost never be ignored. -Wall helps prevent hard-to-find bugs.
Tested with both Release and Debug builds since more warnings are typically reported in debug builds.
In any file I touched, I also cleaned up the includes so that they are grouped and sorted and ordered from "near" to "far" (relative to the file that is including).
Also cleaned up many instances of
size_t
-->std::size_t
, however I will leave a global search and replace for a separate PR to make reviewing easier.