processor use only 13% when excuting function/script
Mostrar comentarios más antiguos
Hello,
I am calculating spread pattern of quite a large amount of projectiles. When I run the full model it take more than 1600 sec cpu time ( profiler info) This is actually quite long since I need to test a lot different setting.
I am using R2012a win 64 version and I have a 8GB ram with Intel® Core™i7QM CPU @2.2Ghz with window 7 professional.(HP Elitebook 8560w)
Now I don't know much about 'using different cores of the CPU' but I can see that there are 8 cores and the total CPU use does not exceed 12-13%, since 100%/8 is 13% it seems like only 1 core is used? Is that correct and if yes, can I do something to make all cores working? or any other action? It seems lile only 1/8 of my computer is used
thanks for any help regards,Jürgen
Respuesta aceptada
Más respuestas (1)
per isakson
el 15 de Ag. de 2012
0 votos
Basically, Matlab uses one core, which explains 12-13%. (Single threaded.)
Some Matlab functions use several cores.
Parallel Toolbox is needed to use all 8 cores.
3 comentarios
Jürgen
el 16 de Ag. de 2012
Friedrich
el 16 de Ag. de 2012
No it isn’t. It’s the same.
Consider I am offer you:
a.) 10% of 100 dollar
b.) 25% of 40 dollar
Which one would you choose? It doesn’t matter because it’s the same(10 dollar in both cases)
It doesn’t matter if you use 25% of 4 Cores (which is basically one core) or if you use 12-13% of 8 cores (which is also one core)
If one would follow your logic, the best would be using 1 Core CPU because then you use 100% of your capacity. But thats not what you want.
Jürgen
el 17 de Ag. de 2012
Categorías
Más información sobre Historical Contests en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!