File for user-defined options to run on each worker when parallel pool starts
poolStartup runs automatically
on a worker each time the worker forms part of a parallel pool. You
do not call this function from the client session, nor explicitly
as part of a task function.
You add MATLAB code to the
to define pool initialization on the worker. The worker looks for
the following order, executing the one it finds first:
Included in the job's
In a folder included in the job's
In the worker's MATLAB® installation at the location
To create a version of
copy the provided file and modify it as required. .
poolStartup is the ideal location for startup
code required for parallel execution on the parallel pool. For example,
you might want to include code for using
poolStartup, they are not suited to pool-specific
code. In other words, you should use
setup code on your worker regardless of whether the task is from an
independent job, communicating job, or using a parallel pool; while
for setup code for pool usage only.
For further details on
poolStartup and its
implementation, see the text in the installed