What happens if the number of workers vacant are less than the minimum value in the specified range of SPMD?

조회 수: 2 (최근 30일)
spmd (m,n)
<statements>
end
If n workers aren't available, it is mentioned in the document that the statement would wait until enough workers are available. What would happen if m workers aren't available? Will it wait for at least m workers to be available?

채택된 답변

Edric Ellis
Edric Ellis 2017년 11월 7일
The spmd reference page states:
spmd(m,n), statements, end uses a minimum of m and a maximum of n workers to evaluate statements. If there are not enough workers available, an error is thrown. m can be zero, which allows the block to run locally if no workers are available.
So, if m workers are not available, an error will be thrown.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Parallel Server에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by