problems with processing. }The processing is slow

조회 수: 2 (최근 30일)
yogan sganzerla
yogan sganzerla 2015년 6월 17일
답변: Walter Roberson 2015년 6월 18일
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

채택된 답변

Walter Roberson
Walter Roberson 2015년 6월 18일
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.)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by