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

480 serialization reduce vec msg #481

Merged
merged 5 commits into from
Oct 7, 2019
Merged

Conversation

mperrinel
Copy link
Contributor

@mperrinel mperrinel commented Oct 3, 2019

ReduceVectorMsg is now serializable.
A test has been added for vector of bool and vector of int.

The specialization struct PlusOp< std::vector<bool> > has been added because the general operation v1[ii] += v2[ii]; doesn't work for std::vector of bool when v1[ii] = v1[ii] + v2[ii]; works.

I think we can also change the operation from v1[ii] += v2[ii]; to v1[ii] = v1[ii] + v2[ii]; in the general PlusOp template but it's probably less optimized.

@mperrinel mperrinel requested a review from lifflander October 3, 2019 17:28
Copy link
Collaborator

@lifflander lifflander left a comment

Choose a reason for hiding this comment

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

You should use the new interface for calling the reduce. I will update the code for that. Otherwise, looks good!

@lifflander lifflander force-pushed the 480-serialization-ReduceVecMsg branch from 97c00ed to f9cb5e3 Compare October 7, 2019 17:52
@lifflander lifflander merged commit a7838af into develop Oct 7, 2019
@lifflander lifflander added this to the 1.0.0-beta milestone Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants