Skip to content
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

Kokkos::resize always error out for mismatch in runtime rank #4681

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

masterleinad
Copy link
Contributor

Should be close enough to fix #1714. The constructor of View errors out anyway and the error message shouldn't be too far off to deduce that the problem might come from another function calling the constructor (which is resize in the issue).

The changes here specifically make sure that we still error out if the dimensions given to resize match up to the run-time rank but are different after that. Previously, we were just ignoring the extra arguments.

@dalg24 dalg24 merged commit 7ea6d75 into kokkos:develop Jan 17, 2022
@masterleinad masterleinad deleted the resize_error_out_runtime branch January 17, 2022 20:50
@ajpowelsnl ajpowelsnl added Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos) InDevelop Enhancement, fix, etc. has been merged into the develop branch; labels Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos) InDevelop Enhancement, fix, etc. has been merged into the develop branch;
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants