Receive data from another worker
data = labReceive
data = labReceive(srcWkrIdx)
data = labReceive('any',tag)
data = labReceive(srcWkrIdx,tag)
[data,srcWkrIdx,tag] = labReceive
data = labReceive receives data from any
worker with any tag.
data = labReceive(srcWkrIdx) receives data
from the specified worker with any tag
data = labReceive('any',tag) receives data
from any worker with the specified tag.
data = labReceive(srcWkrIdx,tag) receives
data from only the specified worker with the specified tag.
[data,srcWkrIdx,tag] = labReceive returns
the source worker
labindex and tag with the data.
This function blocks execution in the worker until the corresponding call to
labSend occurs in the sending
Accelerate code by running on a graphics processing unit (GPU) using Parallel Computing Toolbox™.
This function fully supports GPU arrays. For more information, see Run MATLAB Functions on a GPU.
data is a
gpuArray, data transfer
between multiple GPUs in a parallel pool uses fast peer-to-peer communication,
including NVLink, if available.