User`s guide

parpool
11-235
parpool
Create parallel pool on cluster
Syntax
parpool
parpool(poolsize)
parpool(profilename)
parpool(profilename,poolsize)
parpool(cluster)
parpool(cluster,poolsize)
parpool( ___ ,Name,Value)
poolobj = parpool( ___ )
Description
parpool enables the full functionality of the parallel language features (parfor and
spmd) in MATLAB by creating a special job on a pool of workers, and connecting the
MATLAB client to the parallel pool.
parpool starts a pool using the default cluster profile, with the pool size specified by
your parallel preferences and the default profile.
parpool(poolsize) overrides the number of workers specified in the preferences or
profile, and starts a pool of exactly that number of workers, even if it has to wait for them
to be available. Most clusters have a maximum number of workers they can start. If the
profile specifies a MATLAB job scheduler (MJS) cluster, parpool reserves its workers
from among those already running and available under that MJS. If the profile specifies
a local or third-party scheduler, parpool instructs the scheduler to start the workers for
the pool.
parpool(profilename) or parpool(profilename,poolsize) starts a worker pool
using the cluster profile identified by profilename.
parpool(cluster) or parpool(cluster,poolsize) starts a worker pool on the
cluster specified by the cluster object cluster.