I have Matlab R2012b for 64 bit Ubuntu. I have an Intel Core i3 M 330 @ 2.13GHz ร 4 processor.
I want to use parfor to parallelize 4 loops simultaneously. Since Intel Core i3 has 2 cores and 4 threads, I use this code:
if matlabpool('size') == 0 % checking to see if my pool is already open matlabpool(4) else matlabpool close matlabpool(4) end
And I get the following error:
Error:
You requested at least 4 workers, but the "local" cluster has the NumWorkers property set for a maximum of two workers. To start a communication job for more workers than this (up to 12 for the local cluster), increase the NumWorkers property for the cluster. The default value for NumWorkers for the local cluster is the number of cores on the local machine.
Why? The default value of NumWorkers in my machine is 2, but if I can do 4 cycles at the same time, how to do it?
source share