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

[small] fix type mismatch #719

Merged
merged 3 commits into from
Aug 21, 2022
Merged

[small] fix type mismatch #719

merged 3 commits into from
Aug 21, 2022

Conversation

Yurlungur
Copy link
Collaborator

@Yurlungur Yurlungur commented Aug 19, 2022

PR Summary

The swarm boundaries assume ParArray1D is always the correct type for boundary buffers. However, when host pinned memory is enabled, this type is identical, as BufArray1D has a different memory space. This tiny PR fixes this bug so that the code compiles when you set -DPARTHENON_ENABLE_HOST_COMM_BUFFERS=ON. (This is a useful thing for us to continue to support, as it allows us to run on systems without cuda-aware MPI and helps with debugging.)

PR Checklist

  • Code passes cpplint
  • New features are documented.
  • Adds a test for any bugs fixed. Adds tests for new features.
  • Code is formatted
  • Changes are summarized in CHANGELOG.md
  • CI has been triggered on Darwin for performance regression tests.
  • (@lanl.gov employees) Update copyright on changed files

@Yurlungur Yurlungur added the bug Something isn't working label Aug 19, 2022
@Yurlungur Yurlungur self-assigned this Aug 19, 2022
@Yurlungur Yurlungur linked an issue Aug 19, 2022 that may be closed by this pull request
Copy link
Collaborator

@pgrete pgrete left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pgrete pgrete merged commit c06c970 into develop Aug 21, 2022
@pgrete pgrete deleted the jmm/fix-bvals-swarm branch August 21, 2022 15:47
pgrete pushed a commit that referenced this pull request Aug 29, 2022
* fix type mismatch

* changelog and copyright

* oops wrong copyright

Co-authored-by: Jonah Maxwell Miller <jonahm@lanl.gov>
pgrete added a commit that referenced this pull request Aug 30, 2022
* Add message to static_assert (no message is C++17)

* Remove unused return type from IOWrapper::Open

* Remove pre-C++17 compiler warnings

* Write XDMF for restarts, too

* Remove data transpose from hdf5 output

* Introduce backwards compatiblity

* Use const var to write output version

* Protect format

* Fix typo

* Add Changelog

* Apply suggestions from code review

Co-authored-by: Luke Roberts <lfroberts@lanl.gov>

* [small] fix type mismatch (#719)

* fix type mismatch

* changelog and copyright

* oops wrong copyright

Co-authored-by: Jonah Maxwell Miller <jonahm@lanl.gov>

* Add deprecation todo for python output reader

* Remove outdated performance regression test

Co-authored-by: Jonah Miller <jonah.maxwell.miller@gmail.com>
Co-authored-by: Luke Roberts <lfroberts@lanl.gov>
Co-authored-by: Jonah Maxwell Miller <jonahm@lanl.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bvals_swarm + new ParArray*D + host-buffers
4 participants