Matlab doesn't recognize all cores on my desktop

Hi. My desktop has two CPUs each of which has 12 cores. However, when I use the command 'parpool' in Matlab, it only recognizes 12 workers and not 24 ones. I also manually changed the number 12 in 'Parallel preferences' box from 12 to 24, but when I check the CPU monitor in 'Windows Task Manager', there are still 12 jobs that have been submitted by Matlab. I was wondering if anybody knows how to make Matlab to recognize all 24 cores?
Thanks, Reza

 Accepted Answer

pool = parpool('local',24)

2 Comments

Reza
Reza on 22 Jul 2015
Edited: Reza on 22 Jul 2015
Thanks Sean for your answer, it helped. It seems you can't increase the 'NumWorkers' beyond 12 in Matlab2013b, but I tried it in Matlab2015a and it worked.
Yes, the 12 worker limitation was removed in 14a I believe and is now 512 workers.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!