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

Comm: add alternate version of scatter #7

Merged
merged 1 commit into from Oct 20, 2016
Merged

Conversation

n8pease
Copy link

@n8pease n8pease commented Oct 20, 2016

The default version apparently pickles the entire 'dataList', which
can cause errors if the pickle size grows over 2^31 bytes due to
fundamental problems with pickle in python 2 [1][2](causing, e.g.,). Instead,
we send the data to each slave node in turn; this reduces the pickle
size.

[1] http://bugs.python.org/issue11564
[2] https://www.python.org/dev/peps/pep-3154/

The default version apparently pickles the entire 'dataList', which
can cause errors if the pickle size grows over 2^31 bytes due to
fundamental problems with pickle in python 2 [1][2] (causing, e.g.,
"OverflowError: integer 2155421250 does not fit in 'int'"). Instead,
we send the data to each slave node in turn; this reduces the pickle
size.

[1] http://bugs.python.org/issue11564
[2] https://www.python.org/dev/peps/pep-3154/
@param root Index of root node
@param tag Message tag (integer)
@return Data for this node
"""
Copy link
Author

Choose a reason for hiding this comment

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

You might consider using numpy style documentation here.

Copy link
Contributor

Choose a reason for hiding this comment

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

I would, but I think using the old style is preferred to using heterogeneous styles in the same file, and also preferred to investing time in updating the entire file to use numpydoc.

@PaulPrice PaulPrice merged commit 9df40a3 into master Oct 20, 2016
@ktlim ktlim deleted the tickets/DM-8021 branch August 25, 2018 06:44
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.

None yet

2 participants