Filter löschen
Filter löschen

Matlab Parallel Toolbox Workers Aborted - continue serially?

4 Ansichten (letzte 30 Tage)
Ashley Penna
Ashley Penna am 7 Apr. 2016
Kommentiert: Tanisa am 16 Feb. 2024
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

Antworten (1)

sam0037
sam0037 am 11 Apr. 2016
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 Kommentar
Tanisa
Tanisa am 16 Feb. 2024
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' ?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Parallel Server finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by