Borrar filtros
Borrar filtros

problems with processing. }The processing is slow

1 visualización (últimos 30 días)
yogan sganzerla
yogan sganzerla el 17 de Jun. de 2015
Respondida: Walter Roberson el 18 de Jun. de 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

Respuesta aceptada

Walter Roberson
Walter Roberson el 18 de Jun. de 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.)

Más respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by