terminate program if worker aborts in parallel loop

3 visualizaciones (últimos 30 días)
gagan sidhu
gagan sidhu el 18 de Feb. de 2024
Comentada: gagan sidhu el 21 de Feb. de 2024
i have read this question:
so i am aware of the "solution".
however sometimes we leave yobs on the cluster while we're sleeping, where this warning may pop up.
is there a way to configure the workers/parallel pool such that any warning is fatal and terminates the program?
thanks

Respuesta aceptada

Edric Ellis
Edric Ellis el 21 de Feb. de 2024
If you create your parpool using the option SpmdEnabled=true, then this has the side-effect of making parallel pools terminate completely when any worker aborts.
  1 comentario
gagan sidhu
gagan sidhu el 21 de Feb. de 2024
thanks edric. i will give this a go. i saw you answered the opposite question a few years back, wish i found it.
updated my parallelprofile accordingly as well. surprised it wasn't enabled by default on ACE-NET, but no big deal.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Parallel for-Loops (parfor) en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by