Products & Services Industries Academia Support User Community Company

Learn more about Parallel Computing Toolbox   

Function Reference


Parallel Code ExecutionConstructs for automatically running code in parallel
Distributed and Codistributed ArraysData partitioned across multiple MATLAB sessions
Job and Task ProgrammingParallel computation through individual tasks
Interlab Communication Within a Parallel JobCommunications between labs during job execution
UtilitiesUtilities for using Parallel Computing Toolbox

Parallel Code Execution

Parallel Code on a MATLAB PoolParallel computations on a pool of MATLAB sessions
Configuration, Input, and OutputData access and setup control
Interactive FunctionsParallel code development and debugging

Parallel Code on a MATLAB Pool

batchRun MATLAB script as batch job
CompositeCreate Composite object
distributedCreate distributed array from data in client workspace
matlabpoolOpen or close pool of MATLAB sessions for parallel computation
parforExecute code loop in parallel
spmdExecute code in parallel on MATLAB pool

Configuration, Input, and Output

defaultParallelConfigDefault parallel computing configuration
diaryDisplay or save Command Window text of batch job
existCheck whether Composite is defined on labs
importParallelConfigImport parallel configuration .mat file
loadLoad workspace variables from batch job
pctRunOnAllRun command on client and all workers in matlabpool
subsasgnSubscripted assignment for Composite
subsrefSubscripted reference for Composite

Interactive Functions

mpiprofileProfile parallel communication and execution times
pmodeInteractive Parallel Command Window

Distributed and Codistributed Arrays

Toolbox FunctionsArray creation and manipulation
Overloaded MATLAB FunctionsPredefined arrays with overloaded functions

Toolbox Functions

codistributedCreate codistributed array from replicated local data
codistributed.buildCreate codistributed array from distributed data
codistributed.colonDistributed colon operation
codistributorCreate codistributor object for codistributed arrays
codistributor1dCreate 1-D codistributor object for codistributed arrays
codistributor1d.defaultPartitionDefault partition for codistributed array
codistributor2dbcCreate 2-D block-cyclic codistributor object for codistributed arrays
codistributor2dbc.defaultLabGridDefault computational grid for 2-D block-cyclic distributed arrays
forfor-loop over distributed range
gatherTransfer distributed array data to local workspace
getCodistributorCodistributor object for existing codistributed array
getLocalPartLocal portion of codistributed array
globalIndicesGlobal indices for local part of codistributed array
isaUnderlyingTrue if distributed array's underlying elements are of specified class
isCompleteTrue if codistributor object is complete
isreplicatedTrue for replicated array
redistributeRedistribute codistributed array with another distribution scheme

Overloaded MATLAB Functions

codistributed.cellCreate codistributed cell array
codistributed.eyeCreate codistributed identity matrix
codistributed.falseCreate codistributed false array
codistributed.infCreate codistributed array of Inf values
codistributed.nanCreate codistributed array of Not-a-Number values
codistributed.onesCreate codistributed array of ones
codistributed.randCreate codistributed array of uniformly distributed pseudo-random numbers
codistributed.randnCreate codistributed array of normally distributed random values
codistributed.spallocAllocate space for sparse codistributed matrix
codistributed.speyeCreate codistributed sparse identity matrix
codistributed.sprandCreate codistributed sparse array of uniformly distributed pseudo-random values
codistributed.sprandnCreate codistributed sparse array of uniformly distributed pseudo-random values
codistributed.trueCreate codistributed true array
codistributed.zerosCreate codistributed array of zeros
distributed.cellCreate distributed cell array
distributed.eyeCreate distributed identity matrix
distributed.falseCreate distributed false array
distributed.infCreate distributed array of Inf values
distributed.nanCreate distributed array of Not-a-Number values
distributed.onesCreate distributed array of ones
distributed.randCreate distributed array of uniformly distributed pseudo-random numbers
distributed.randnCreate distributed array of normally distributed random values
distributed.spallocAllocate space for sparse distributed matrix
distributed.speyeCreate distributed sparse identity matrix
distributed.sprandCreate distributed sparse array of uniformly distributed pseudo-random values
distributed.sprandnCreate distributed sparse array of normally distributed pseudo-random values
distributed.trueCreate distributed true array
distributed.zerosCreate distributed array of zeros
sparseCreate sparse distributed or codistributed matrix

Job and Task Programming

Job CreationJob and task definition
Job ManagementJob and task execution
Task Execution InformationInformation on the processes evaluating a task
Object ControlParallel Computing Toolbox objects

Job Creation

createJobCreate job object in scheduler and client
createMatlabPoolJobCreate MATLAB pool job
createParallelJobCreate parallel job object
createTaskCreate new task in job
dfevalEvaluate function using cluster
dfevalasyncEvaluate function asynchronously using cluster
findResourceFind available parallel computing resources
jobStartupFile for user-defined options to run when job starts
mpiLibConfLocation of MPI implementation
mpiSettingsConfigure options for MPI communication
pctconfigConfigure settings for Parallel Computing Toolbox client session
poolStartupFile for user-defined options to run on each worker when MATLAB pool starts
setupForParallelExecutionSet options for submitting parallel jobs to scheduler
taskFinishFile for user-defined options to run when task finishes
taskStartupFile for user-defined options to run when task starts

Job Management

cancelCancel job or task
demoteDemote job in job manager queue
destroyRemove job or task object from parent and memory
findJobFind job objects stored in scheduler
findTaskTask objects belonging to job object
getAllOutputArgumentsOutput arguments from evaluation of all tasks in job object
getDebugLogRead output messages from job run by supported third-party or local scheduler
getJobSchedulerDataGet specific user data for job on generic scheduler
pausePause job manager queue
promotePromote job in job manager queue
resumeResume processing queue in job manager
setJobSchedulerDataSet specific user data for job on generic scheduler
submitQueue job in scheduler
waitWait for job to finish or change state
waitForStateWait for object to change state

Task Execution Information

getCurrentJobJob object whose task is currently being evaluated
getCurrentJobmanagerJob manager object that scheduled current task
getCurrentTaskTask object currently being evaluated in this worker session
getCurrentWorkerWorker object currently running this session
getFileDependencyDirDirectory where FileDependencies are written on worker machine

Object Control

clearRemove objects from MATLAB workspace
getObject properties
inspectOpen Property Inspector
lengthLength of object array
methodsList functions of object class
setConfigure or display object properties
sizeSize of object array

Interlab Communication Within a Parallel Job

gcatGlobal concatenation
gopGlobal operation across all labs
gplusGlobal addition
labBarrierBlock execution until all labs reach this call
labBroadcastSend data to all labs or receive data sent to all labs
labindexIndex of this lab
labProbeTest to see if messages are ready to be received from other lab
labReceiveReceive data from another lab
labSendSend data to another lab
labSendReceiveSimultaneously send data to and receive data from another lab
numlabsTotal number of labs operating in parallel on current job
ploadLoad file into parallel session
psaveSave data from parallel job session

Utilities

helpHelp for toolbox functions in Command Window
pctRunDeployedCleanupClean up after deployed parallel applications
  


 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS