Simulink code seems not to use pc's proccessing power.
5 次查看(过去 30 天)
显示 更早的评论
I am working on " Spiral Galaxy Formation Simulation " example in Mathworks. I changed some numbers and equations (attached file).
I supposedly bought an expensive laptop so I could increase the number of particles. But I was surprised to see that even with high number of particles the CPU was at less than 20% in use, while none of the other stats was restraining the speed. The screen capture is indicating.

0 个评论
采纳的回答
John D'Errico
2018-2-7
编辑:John D'Errico
2018-2-7
That seems to indicate you are only using one core.
First, I might check
maxNumCompThreads
Then you might take a read here:
https://www.mathworks.com/help/simulink/ug/solving-embedded-performance-problems-using-multicore-processors-and-fpgas.html
1 个评论
Walter Roberson
2018-2-7
Simulation does not normally use parallel processing. See https://www.mathworks.com/help/simulink/ug/running-parallel-simulations.html
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multicore Processor Targets 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!