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

Add support for shared arrays #2

Merged
merged 5 commits into from
Oct 5, 2016
Merged

Add support for shared arrays #2

merged 5 commits into from
Oct 5, 2016

Conversation

jakirkham
Copy link
Owner

@jakirkham jakirkham commented Oct 4, 2016

This adds a shared array type for use with multiprocessing that is based off of ctype.Arrays, but for use as a shared memory array like multiprocessing.RawArray. However, it has additional metadata to aid in use with NumPy. It also includes a context manager function so as to convert the 1-D array into an N-D NumPy array. From there any computation can be done in parallel.

@jakirkham jakirkham force-pushed the shared_arrays branch 6 times, most recently from cae850d to dbe9874 Compare October 5, 2016 15:14
@jakirkham jakirkham force-pushed the shared_arrays branch 2 times, most recently from f939d8c to 432b3a5 Compare October 5, 2016 15:44
@jakirkham jakirkham force-pushed the shared_arrays branch 3 times, most recently from a1a74d5 to 4bdca22 Compare October 5, 2016 16:08
@jakirkham
Copy link
Owner Author

Added some doctests/examples and added some unit tests. Includes one multiprocessing process test.

@jakirkham
Copy link
Owner Author

Should be good enough for a first pass.

@jakirkham jakirkham merged commit 993f056 into master Oct 5, 2016
@jakirkham jakirkham deleted the shared_arrays branch October 5, 2016 16:21
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.

1 participant