pynbody.array.shared#
Support for numpy arrays in shared memory.
See also
There is information about using shared arrays to create parallel workflows in Writing your own parallel code.
Functions
Ensures that all shared memory has been cleaned up. |
|
Returns the number of shared arrays currently owned by this process. |
|
|
Create or reconstruct an array of dimensions dims with the given numpy dtype, backed on shared memory. |
|
Turn an array backed onto shared memory into something that can be passed between processes |
|
Equivalent to pool.map, but turns any shared memory arrays into a reference that can be passed between processes. |
A decorator for functions that are expected to run on a 'remote' process, accepting shared memory inputs. |
|
|
Reconstruct an array backed onto shared memory from a deconstructed array (returned by |
Classes
|
A simulation array that is backed onto shared memory. |
Exceptions
|
|
|
Modules
POSIX-specific shared memory implementation. |