i7-2600k procesor 8 cores only 1 core being used

조회 수: 1 (최근 30일)
Chris
Chris 2011년 8월 16일
I noticed when running a script it is using less than 20% of my cpu usage to calculate. The scripts run very slowly and I am wondering if there is a way I can boost it up. When I go to task manager it shows 20% cpu usage while running and 8 cores are barely being used. The script has for loops and I did change to parfor which speeds it up a bit but still doesn't seem to be really utlizing my new computer. I also did by the parallel computing toolbox but same results.

채택된 답변

Walter Roberson
Walter Roberson 2011년 8월 17일
Your program structure might not be very suitable for running in parallel.
Multiple cores do not help much with parfor unless you start getting fairly large arrays. Using parfor can be much slower than not using it unless your arrays are big enough.
If you are using big arrays, consider whether using distributed arrays (drange) would help.
If some parts can be run independently of the others, with the results eventually collected, then you might find it better to program in terms of spmd.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by