Matlab Parallel Toolbox Workers Aborted - continue serially?

조회 수: 4 (최근 30일)
Ashley Penna
Ashley Penna 2016년 4월 7일
댓글: Tanisa 2024년 2월 16일
Hi there,
Is there a way to have Matlab continue serially if all of the parallel workers aborted during processing instead of erroring out?
Thank you! Ashley

답변 (1개)

sam0037
sam0037 2016년 4월 11일
Hi,
An SpmdEnabled pool cannot continue once communication between workers or between workers and client has been lost. If you are using the local scheduler or MJS and only using parfor then they are able to instead specify the flag 'SpmdEnabled' 'false'. See doc SpmdEnabled for details.
With this option the remaining workers will continue to complete the parfor even after 1 worker has lost connection.
If this is not what you were looking for, then it would help to understand if you could share the workflow, the cause of abort and the error messages you observe.
  댓글 수: 1
Tanisa
Tanisa 2024년 2월 16일
Hi,
If I am running parfor within global optimization function (@particleswarm and parallel option) and encounter this error, where would be an appropriate place to specify 'SpmdEnabled' to 'false' ?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by