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

Factor out and test memcpy serialization #3291

Merged
merged 9 commits into from
Nov 4, 2019
Merged

Factor out and test memcpy serialization #3291

merged 9 commits into from
Nov 4, 2019

Conversation

fweik
Copy link
Contributor

@fweik fweik commented Nov 4, 2019

Description of changes:

  • This splits off the memcpy serialization used in the ghost communication and adds unit test
    for it.
  • Added customization point to opt-in to memcpy serialization for types that are not TriviallyCopyable, but serializes
    to a bounded size, like boost::optional. This is so we can use optional and variant in ParticleProperties, which is planned.

@fweik fweik requested a review from RudolfWeeber November 4, 2019 09:28
@codecov
Copy link

codecov bot commented Nov 4, 2019

Codecov Report

Merging #3291 into python will increase coverage by <1%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           python   #3291    +/-   ##
=======================================
+ Coverage      85%     86%   +<1%     
=======================================
  Files         534     536     +2     
  Lines       25510   25574    +64     
=======================================
+ Hits        21937   22004    +67     
+ Misses       3573    3570     -3
Impacted Files Coverage Δ
src/core/ghosts.hpp 100% <ø> (ø) ⬆️
src/utils/tests/memcpy_archive_test.cpp 100% <100%> (ø)
...ils/include/utils/serialization/memcpy_archive.hpp 100% <100%> (ø)
src/core/unit_tests/Particle_test.cpp 100% <100%> (ø) ⬆️
src/core/ghosts.cpp 100% <100%> (ø) ⬆️
src/utils/include/utils/Span.hpp 100% <0%> (ø) ⬆️
src/core/particle_data.cpp 97% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 30b25a2...8ee1686. Read the comment docs.

@fweik fweik changed the title Factor out and test memcpy serialization WIP: Factor out and test memcpy serialization Nov 4, 2019
@fweik fweik changed the title WIP: Factor out and test memcpy serialization Factor out and test memcpy serialization Nov 4, 2019
@jngrad
Copy link
Member

jngrad commented Nov 4, 2019

bors r=RudolfWeeber

bors bot added a commit that referenced this pull request Nov 4, 2019
3291: Factor out and test memcpy serialization r=RudolfWeeber a=fweik

Description of changes:
 - This splits off the memcpy serialization used in the ghost communication and adds unit test
   for it.
 - Added customization point to opt-in to memcpy serialization for types that are not [TriviallyCopyable](https://en.cppreference.com/w/cpp/named_req/TriviallyCopyable), but serializes
 to a bounded size, like `boost::optional`. This is so we can use `optional` and `variant` in `ParticleProperties`, which is planned.


3292: Pypresso: Remove "test -a" and quote $@ r=jngrad a=hirschsn

Description of changes:
 - Remove `test -a` since calls to test with more than 4 arguments are unspecified: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html
 - Quote `$@` to avoid splitting $@. Currently `./pypresso --gdb "test me.py"` will fail because tries to find the file `test`. Quoting avoids this.


PR Checklist
------------
 - [ ] Tests?
   - [ ] Interface
   - [ ] Core 
 - [ ] Docs?


Co-authored-by: Florian Weik <[email protected]>
Co-authored-by: Steffen Hirschmann <[email protected]>
@bors
Copy link
Contributor

bors bot commented Nov 4, 2019

Build succeeded

@bors bors bot merged commit 8ee1686 into espressomd:python Nov 4, 2019
@fweik fweik deleted the memcpy_archive branch August 27, 2020 10:22
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.

3 participants