Issue with Rapid Accelerator Mode in parsim After Upgrading to R2024b

조회 수: 11 (최근 30일)
Christian Hanzl
Christian Hanzl 2024년 11월 20일
댓글: Oliver Jaehrig 2025년 1월 28일
I am encountering issues with the workers in parsim when using the Rapid Accelerator mode.
After upgrading from R2024a to R2024b one week ago, I noticed that running parsim simulations no longer works as expected. I aim to run 6 simulations on a system with 6 physical (P) cores, allowing Matlab to compute all simulations simultaneously. However, only one worker completes the simulation, while the remaining five remain stuck in the "Running" state.
I tested this behavior with 6 identical models, but the issue persisted. Uninstalling and reinstalling Matlab did not do the trick.
Another observation is related to CPU behavior. When the parsim simulation starts, my laptop's fan runs intensively, and some CPU cores reach 100% utilization—this is expected and matches the behavior in R2024a. However, as soon as the first worker completes its simulation, the fan slows down, and CPU utilization becomes erratic. The CPU usage fluctuates significantly, jumping between 20% and 90%.
Additionally, if I stop the parsim simulation via the Simulation Manager, Matlab becomes stuck at the "Cleaning up parallel worker" stage for the workers that were stuck during the simulation.
Interestingly, when switching from Rapid Accelerator to Accelerator mode, the parsim simulations work correctly, and some CPU cores consistently run at 100% utilization.
Does anyone have a clue what the cause for this behavior?
  댓글 수: 2
Oliver Jaehrig
Oliver Jaehrig 2024년 11월 20일
Is this happening for any model?
If yes, can you check if your anti-virus scanner maybe blocks the executables?
Christian Hanzl
Christian Hanzl 2024년 11월 25일
Hi Oliver,
Thank you very much for your reply.
I’ve investigated further, and the issue occurs with every model run in Rapid Accelerator mode using parsim in MATLAB R2024b, even with minimal examples. However, when the same models are run in R2024a, they work as expected.
I also checked the Windows Security history for any blocked files or events. There are no entries indicating that any files or actions related to MATLAB have been blocked recently. Actually, there is no entry at all of anything being blocked recently.
Let me know if there’s anything else I should check or if additional details are needed.
Best regards,
Christian

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

답변 (1개)

Divyam
Divyam 2024년 12월 11일
I have encountered this bug with MATLAB R2024b. The rapid accelerator mode breaks during parallel simulations if there are other versions of MATLAB installed on your machine besides R2024b.
The current workaround for this bug is to uninstall all other versions of MATLAB except R2024b and remove any path variables related to other MATLAB versions from the environment variables. You will need to reboot your system after making the necessary changes to the path variables.
To ensure this workaround is correctly implemented, run the following command in your terminal and check that no paths including earlier versions of MATLAB or MATLAB runtime are printed:
echo %PATH%
If this does not resolve your problem, you could refer to the other troubleshooting links to MATLAB answers here:
  댓글 수: 5
Christian Hanzl
Christian Hanzl 2025년 1월 28일
Hi @Dan,
My workaround is to work with R2024a. Nothing works for R2024b.
Best regards,
Chris
Oliver Jaehrig
Oliver Jaehrig 2025년 1월 28일
The bug report is:
If the bugfix in R2024b Update 4 does not fix your issue, please create a Technical Support case so we can check if you are facing any other issue:

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by