ptypy.utils.parallel.send#
- ptypy.utils.parallel.send(data, dest=0, tag=0)#
Wrapper for comm.Send and comm.send. If data is a numpy.ndarray, a header will be sent first with comm.send that contains information on array shape and data type. Afterwards the array will be sent with comm.Send. If data is not a numpy.ndarray, the whole object will be pickled and sent with comm.send in one go.
- Parameters:
data (ndarray or other) – Object to send
dest (int) – The rank of the destination node / process. Defaults to 0 (master).
tag (int) – Defaults to 0.