MATLAB Answers

0

Simulink code seems not to use pc's proccessing power.

Asked by Christos Dimopoulos on 7 Feb 2018
Latest activity Commented on by Walter Roberson
on 7 Feb 2018

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 Comments

Sign in to comment.

1 Answer

Answer by John D'Errico
on 7 Feb 2018
Edited by John D'Errico
on 7 Feb 2018

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 Comment

Sign in to comment.


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today