Skip to Main Content Skip to Search
Product Documentation

Function Reference


Parallel Code ExecutionConstructs for automatically running code in parallel
Distributed and Codistributed ArraysData partitioned across multiple MATLAB sessions
Jobs and TasksParallel computation through individual tasks
Interlab Communication Within a Communicating JobCommunications between labs during job execution
Graphics Processing UnitTransferring data and running code on the GPU
UtilitiesUtilities for using Parallel Computing Toolbox

Parallel Code Execution

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

Parallel Code on a MATLAB Pool

batchRun MATLAB script or function on worker
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

Profiles, Input, and Output

diaryDisplay or save Command Window text of batch job
existCheck whether Composite is defined on labs
loadLoad workspace variables from batch job
parallel.clusterProfiles Names of all available cluster profiles
parallel.defaultClusterProfileExamine or set default cluster profile
parallel.exportProfileExport one or more profiles to file
parallel.importProfileImport cluster profiles from file
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 or GPUArray 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

Jobs and Tasks

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 distributed or independent job
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
taskFinishUser-defined options to run on worker when task finishes
taskStartupUser-defined options to run on worker when task starts

Job Management

cancelCancel job or task
changePasswordPrompt user to change job manager password or MJS password
clearLocalPasswordDelete local store of user's job manager password
demoteDemote job in cluster 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 in CJS cluster
getJobSchedulerDataGet specific user data for job on generic scheduler
pausePause job manager queue
promotePromote job in MJS cluster queue
resumeResume processing queue in job manager
setJobClusterDataSet specific user data for job on generic cluster
setJobSchedulerDataSet specific user data for job on generic scheduler
submitQueue job in scheduler
waitWait for job to change state or for GPU calculation to complete
waitForStateWait for object to change state

Task Execution Information

getAttachedFilesFolderFolder into which AttachedFiles are written
getCurrentClusterCluster object that submitted current task
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 Communicating 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

Graphics Processing Unit

arrayfunApply function to each element of array on GPU
bsxfunBinary singleton expansion function for GPUArray
existsOnGPUDetermine if GPUArray or CUDAKernel is available on GPU
fevalEvaluate kernel on GPU
gatherTransfer distributed array data or GPUArray to local workspace
gpuArrayCreate array on GPU
gpuDeviceQuery or select GPU device
gpuDeviceCountNumber of GPU devices present
parallel.gpu.CUDAKernelCreate GPU CUDA kernel object from PTX and CU code
resetReset GPU device and clear its memory
setConstantMemorySet some constant memory on GPU
waitWait for job to change state or for GPU calculation to complete

Utilities

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


Free Parallel Computing Interactive Kit

See how to solve large problems with minimal effort and reduce simulation time.

Get free kit

Trials Available

Try the latest versions of parallel computing products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS