Crash Running Matlab Simulink on MAC M1 MAX Parsym, Parfor

5 次查看(过去 30 天)
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 个评论
Karl Larsson
Karl Larsson 2024-5-3
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

请先登录,再进行评论。

回答(0 个)

类别

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