Skip to content

Add int overflow assert to PrefixSum#4794

Merged
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
AlexanderSinn:Add_int_overflow_assert_to_PrefixSum
Nov 17, 2025
Merged

Add int overflow assert to PrefixSum#4794
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
AlexanderSinn:Add_int_overflow_assert_to_PrefixSum

Conversation

@AlexanderSinn
Copy link
Copy Markdown
Member

Summary

The assert was already implemented for some backends, but not the cub and rocprim ones. Additionally, nelms_per_block * virtual_block_idcould overflow before.

Additional background

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

@WeiqunZhang
Copy link
Copy Markdown
Member

/run-hpsf-gitlab-ci

@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

GitLab CI 1314866 finished with status: success. See details at https://gitlab.spack.io/amrex/amrex/-/pipelines/1314866.

@WeiqunZhang WeiqunZhang merged commit 85dcd33 into AMReX-Codes:development Nov 17, 2025
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants