Skip to content

AMREX_ALWAYS_ASSERT that works on device? #2648

Answered by WeiqunZhang
BenWibking asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, AMREX_ALWAYS_ASSERT works on device if NDEBUG is not defined. This is the same behavior as assert in CUDA. https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#assertion

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BenWibking
Comment options

BenWibking Mar 8, 2022
Collaborator Author

Answer selected by BenWibking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants