Main Content

Task Control and Worker Communication

Control task code execution and communication among workers during job and spmd block execution

Functions

expand all

addAttachedFilesAttach files or folders to parallel pool
spmdIndexIndex of current worker in spmd block (Since R2022b)
spmdSizeNumber of workers running current spmd block (Since R2022b)
spmdCatConcatenate arrays on spmd workers (Since R2022b)
spmdReduceReduce arrays on spmd workers (Since R2022b)
spmdPlusAdd arrays from workers in spmd block (Since R2022b)
spmdBarrierSynchronize workers in spmd block (Since R2022b)
spmdBroadcastSend data to all workers in spmd block (Since R2022b)
spmdProbeDetermine whether data is available to current worker in spmd block (Since R2022b)
spmdReceiveReceive data from another worker in spmd block (Since R2022b)
spmdSendSend data to another worker in spmd block (Since R2022b)
spmdSendReceiveSimultaneously send and receive data on worker in spmd block (Since R2022b)
getCurrentJobGet job object from a worker running a job
getCurrentClusterGet cluster object from a worker in a cluster
getCurrentTaskGet task object from a worker running a task
getCurrentWorkerGet worker object from current worker
getAttachedFilesFolderIdentify folder on a worker where attached files are copied to
updateAttachedFilesUpdate attached files or folders on parallel pool

Classes

expand all

parallel.TaskAccess task properties and behaviors
parallel.WorkerAccess worker that ran task