Issue with Rapid Accelerator Mode in parsim After Upgrading to R2024b
114 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Christian Hanzl
am 20 Nov. 2024 um 10:10
Kommentiert: Oliver Jaehrig
am 11 Dez. 2024 um 12:53
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 Kommentare
Oliver Jaehrig
am 20 Nov. 2024 um 15:11
Is this happening for any model?
If yes, can you check if your anti-virus scanner maybe blocks the executables?
Antworten (1)
Divyam
am 11 Dez. 2024 um 12:09
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:
- https://www.mathworks.com/matlabcentral/answers/2026934-why-does-my-computer-experience-high-memory-usage-while-attempting-to-run-parsim-multiple-times
- https://www.mathworks.com/matlabcentral/answers/1650450-when-do-i-need-to-call-simulink-blockdiagram-buildrapidacceleratortarget-when-using-parsim-or-b
1 Kommentar
Oliver Jaehrig
am 11 Dez. 2024 um 12:53
@Christian Hanzl I can confirm that there is indeed such a bug existing in R2024b and the development team currently works on bug fixes for it.
Please check if the above workaround helps.
Siehe auch
Kategorien
Mehr zu Run Multiple Simulations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!