-
Notifications
You must be signed in to change notification settings - Fork 39
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
Replace assert with KOKKOS_ASSERT in kernel code #951
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.
Might as well also remove the <cassert>
header inclusion in files that don't use assert
.
Would be nice if kokkos/kokkos#5403 was resolved first to not bring |
Why is it acceptable to pull in the full |
My two cents:
|
(Not saying we must define our own but disagreeing with the comment above) Purging the unnecessary header includes is more difficult than search and replace. |
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.
Should we create ArborX_KokkosExtAssert.hpp
to hide the complexity?
#if KOKKOS_VERSION >= 40200 | ||
#include <Kokkos_Assert.hpp> // KOKKOS_ASSERT | ||
#else | ||
#include <Kokkos_Core.hpp> // KOKKOS_ASSERT |
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.
Did you consider including impl/Kokkos_Error.hpp
instead? I suspect that would work.
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.
Cons:
impl/Kokkos_Error.hpp
is not a public header. We shouldn't be a bad example.- up to
Kokkos
version 4.2.0 (at the very least), there is not much of a chance for anArborX
executable to be able to include less thanKokkos_Core.hpp
anyway.
Pros:
- we only include non-public headers up to a version that we know the file exists.
- we don't rely on
Kokkos_Core.hpp
including headers we should provide ourselves, see Include<iostream>
when using it in examples and benchmaks #956, before version 4.2.0.
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.
Cons:
impl/Kokkos_Error.hpp
is not a public header. We shouldn't be a bad example.
In our implementation details only. I don't think that is an issue.
- up to
Kokkos
version 4.2.0 (at the very least), there is not much of a chance for anArborX
executable to be able to include less thanKokkos_Core.hpp
anyway.
I don't understand the point you want to make.
Retest this please. |
HIP did not start, one CUDA build ran out of disk space. Otherwise, good. |
Fixes #949.