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. Becau
To increase the default NumWorkers
, open the Cluster Profile Manager (Parallel->Manage Cluster Profiles). Pick the local
profile, click edit, and increase NumWorkers
to the maximum possible value (in your case 4). Now it is possible to create a matlabpool
with more workers than physical cores on your machine.
However, note that using more workers than cores might lead to decreased performance as compared to having the same number of workers as cores.