problems with processing. }The processing is slow

2 vues (au cours des 30 derniers jours)
yogan sganzerla
yogan sganzerla le 17 Juin 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

Réponse acceptée

Walter Roberson
Walter Roberson le 18 Juin 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.)

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by