Create parallel pool on cluster
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. If possible, the working folder on the workers
is set to match that of the MATLAB client session.
parpool
starts a pool using the default
cluster profile, with the pool size specified by your parallel preferences
and the default profile.
parpool(
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, poolsize
)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(
or profilename
)parpool(
starts
a worker pool using the cluster profile identified by profilename
,poolsize
)profilename
.
parpool(___,
applies
the specified values for certain properties when starting the pool.Name,Value
)
returns
a parallel.Pool object to
the client workspace representing the pool on the cluster. You can
use the pool object to programmatically delete the pool or to access
its properties.poolobj
= parpool(___)
Composite
| delete
| distributed
| gcp
| parallel.defaultClusterProfile
| parallel.pool.Constant
| parfeval
| parfevalOnAll
| parfor
| pctRunOnAll
| spmd