All workers executing an
spmd statement must
have the same MATLAB® search path as the client, so that they
can execute any functions called in their common block of code. Therefore,
whenever you use
the client, it also executes on all the workers, if possible. For
more information, see the
page. When the workers are running on a different platform than the
client, use the function
properly set the MATLAB path on all workers.
When an error occurs on a worker during the execution of an
the error is reported to the client. The client tries to interrupt
execution on all workers, and throws an error to the user.
Errors and warnings produced on workers are annotated with the
worker ID (
labindex) and displayed in the client's
Command Window in the order in which they are received by the MATLAB client.
The behavior of
unspecified at the end of an
spmd if used within
Inside a function, the body of an
cannot make any direct reference to a nested function.
However, it can call a nested function by means of a variable defined
as a function handle to the nested function.
spmd body executes on workers,
variables that are updated by nested functions called inside an
do not get updated in the workspace of the outer function.
The body of an
spmd statement cannot define
function. However, it can reference an anonymous function
by means of a function handle.
The body of an
spmd statement cannot directly
spmd. However, it can call a
function that contains another
spmd statement does not run in parallel
in another parallel pool, but runs serially in a single thread on
the worker running its containing function.
The body of a
parfor-loop cannot contain
spmd statement, and an
cannot contain a