How to parallel 4 works with PARFOR with a Core i3 in Matlab
问题 I have Matlab R2012b for Ubuntu 64 bits. I have a Intel Core i3 CPU M 330 @ 2.13GHz × 4. I want to use parfor to parallelize 4 loops at same time. Because 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 obtain the following error: Error: You requested a minimum of 4 workers, but the cluster "local" has the NumWorkers property set to allow a maximum of 2