Crash Running Matlab Simulink on MAC M1 MAX Parsym, Parfor

조회 수: 5 (최근 30일)
Jorge Ignacio Cisneros Saldana
Jorge Ignacio Cisneros Saldana 2023년 5월 4일
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
Jorge Ignacio Cisneros Saldana
Jorge Ignacio Cisneros Saldana 2024년 5월 3일
@Edric Ellis No it did not fixed, the issue happened after upgrading it actually.

댓글을 달려면 로그인하십시오.

답변 (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