Task Control and Worker Communication

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

Functions

labindex Index of this worker
numlabs Total number of workers operating in parallel on current job
gcat Global concatenation
gop Global operation across all workers
gplus Global addition
pload Load file into parallel session
psave Save data from communicating job session
labBarrier Block execution until all workers reach this call
labBroadcast Send data to all workers or receive data sent to all workers
labProbe Test to see if messages are ready to be received from other worker
labReceive Receive data from another worker
labSend Send data to another worker
labSendReceive Simultaneously send data to and receive data from another worker
getCurrentJob Job object whose task is currently being evaluated
getCurrentCluster Cluster object that submitted current task
getCurrentTask Task object currently being evaluated in this worker session
getCurrentWorker Worker object currently running this session
getAttachedFilesFolder Folder into which AttachedFiles are written

Classes

parallel.Task Access task properties and behaviors
parallel.Worker Access worker that ran task
Was this topic helpful?