I see a huge difference between apparently similar approaches and would like to understand what's happening and why the discrepancy.
I just created this M-file
% code
mywave.mparfor i=1:10024 A(i) = sin(i*2*pi/1024);end
And tried to run it using 2 different approaches:
%code
matlabpool open 100 %connected to 100 labs.
ticmywave toc
Elapsed time is 0.652927 seconds.
%code2. batch('mywave','matlabpool',100)
MaximumNumberOfWorkers : 101 MinimumNumberOfWorkers : 101 Elapsed time is 166.722475 seconds
My configuration is with 132 processors (workers) passing all the validatiions. connected to 100 labs.
With resource list parameter as : -l walltime=12:00:00 -l nodes=11:ppn=12
(i have a linux cluster with 12 nodes & 12 ppn , with shared file system)
Thanks in advance.
Best Answer