Crash Running Matlab Simulink on MAC M1 MAX Parsym, Parfor

5 vues (au cours des 30 derniers jours)
Jorge Ignacio Cisneros Saldana
I get the following error trying to run Matlab code using parallel toolbox with Simulink. XXX is a ficticious name.
This is error i get, anyone know how to solve it.
Error using
XXX
Cannot load model 'XXX' on parallel workers. If this is a demo model please ensure that it is installed on the parallel workers or copy the model file to a location outside of matlabroot
Caused by: A worker failed while executing a FevalOnAllFuture.
Warning: 2 worker(s) crashed while executing code in the current parallel pool. MATLAB may attempt to run the code again on the remaining workers of the pool, unless an spmd block has run. View the crash dump files to determine what caused the workers to crash.
Restarting the computer, Running on Terminal,
Running following code:
%% Validation Parameters % (1) Run the following MATLAB commands in order: tic rehash toolboxcache;
restoredefaultpath;
savepath toc % (2) Restart MATLAB and try the validation again.
I have Available Space 500 GB of Storage. Nothing Works.
  3 commentaires
Karl Larsson
Karl Larsson le 3 Mai 2024
I had similar errors when using parfor-loops using R2024a (Apple silicon version) on a Macbook Pro M3 Max (macOS Sonoma 14.4.1). In my case it seems the problem was related to the computer entering sleep mode, because the problem was fixed by turning on the macOS-setting:
System Settings -> Battery -> Options... -> Prevent automatic sleeping on power adapter when the display is off
Jorge Ignacio Cisneros Saldana
@Edric Ellis No it did not fixed, the issue happened after upgrading it actually.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Parallel for-Loops (parfor) dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by