-
Notifications
You must be signed in to change notification settings - Fork 288
Libcudacxx flag cleanup #6345
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
base: main
Are you sure you want to change the base?
Libcudacxx flag cleanup #6345
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
/ok to test |
davebayer
left a comment
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.
There is actually a huge problem that I was solving in #4996. The problem that we use assert(...) in lit tests, but CMake in release build type (I believe it's CMake) forces NDEBUG to be defined which means that none of the assertions are actually evaluated.
Oof. AIUI, we could switch these to @miscco is this correct? Do you have thoughts on this? (incidentally I also noticed a bug in the docs for the |
|
There are also a toooon of warnings uncovered by these new flags in the lit tests. |
We can use something like
That's because there are variables that are defined and only used inside |
|
Let's switch to a new macro instead of using assert. We shouldn't be using raw asserts to verify correctness in tests for exactly this reason 😄Too fragile. |
Its not, we do not use cmake to compile the lit tests. So asserts are properly live, its just that there are new warnings added |
lit manually compiles the test independent of the cmake configuration. Its nice to get the compile flags from it but we cannot build the lit tests in release mode.
😬 CI Workflow Results🟥 Finished in 3h 14m: Pass: 43%/89 | Total: 2d 07h | Max: 3h 02m | Hits: 92%/31102See results here. |
This does not introduce new warning flags. It only adds |
this compiles out all asserts, which adds a bazillion unused variable warnings because the tests do not do anything anymore |
miscco
left a comment
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.
We need more discussion here
Removes some unused headertest flag variables.
Adds
CMAKE_CUDA_FLAGSandCMAKE_CUDA_FLAGS_<config>to lit builds.Thanks to @davebayer for noticing these flags missing from lit targets.