-
Notifications
You must be signed in to change notification settings - Fork 707
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
Use Kokkos::abort() where necessary. #17018
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.
You should be able to just call Kokkos::abort
without distinguishing between host and device execution if you were only calling a plain std::abort
before. We only have that separation in the Assert
macro since we want to pass through more information that is not device-compatible.
Even better, of course! |
I think you need to add a (""):
|
Yes, you need to provide an error string. |
Yes, I noticed too yesterday. I didn't see it because I merged @masterleinad suggestion on the web site, rather than making the change locally and compiling. I will get to fix this later today. |
OK, works now! |
I think it would make sense to leave a comment about the necessity to use the Kokkos version on device code but that it is equivalent to std::abort otherwise. |
Co-authored-by: Daniel Arndt <arndtd@ornl.gov>
I added the comment. |
@masterleinad I must admit that I don't know the intricacies of what is or isn't available in Kokkos for specific versions. Does this seem right to address your comment that we can't call straight
std::abort()
in our assertion machinery?If so, this fixes #16553.