problems with processing. }The processing is slow

4 Ansichten (letzte 30 Tage)
yogan sganzerla
yogan sganzerla am 17 Jun. 2015
Beantwortet: Walter Roberson am 18 Jun. 2015
Helo, I have one problem with my computer.... I have one code that have about 6*10^8 interaction and the time necessay to run is 9 days...but my processing work in 7%. I want to know why the computer don't work in 50% (processing) and run more fast.
*see the picture Thanks

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 18 Jun. 2015
You appear to have 16 cores, and the 7% appears to refer to the average load across all of the cores. 16*.07 = 1.08, so on average you are keeping one CPU fully busy, plus a bit more for other things.
Even when you do not have the Parallel Computing Toolbox, MATLAB automatically uses multiple cores for some kinds of computation operations when the amount of data to be processed is "big enough" to make the overhead worth while. Your code either does not use those particular operations, or else your data vectors are not large enough to make it worth starting multiple cores.
Generally speaking, multiple cores will only be used when you write your code in vectorized form, and your arrays are at least 10000 elements (the exact number depends on the kind of operation being done.)

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Coder 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!

Translated by