terminate program if worker aborts in parallel loop
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Edric Ellis
2024-2-21
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel Computing Fundamentals 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!