Running a local job on a quad core computer boils down to the following:
- Code: Select all
matlabpool local 4;
maxNumCompThreads(4);
tic
parfor (k = 1:K)
[enhanced] = ispl(noisy, fs, KS(k));
results(k) = pesq(clean,enhanced,fs);
end
toc
matlabpool close;
The output is quite verbose:
- Code: Select all
>> sweep_ispl
To learn more about the capabilities and limitations of matlabpool, distributed
arrays, and associated parallel algorithms, use doc matlabpool
We are very interested in your feedback regarding these capabilities.
Please send it to parallel_feedback@mathworks.com.
Submitted parallel job to the scheduler, waiting for it to start.
Connected to a matlabpool session with 4 labs.
Elapsed time is 28.732073 seconds.
Sending a stop signal to all the labs...
Waiting for parallel job to finish...
Performing parallel job cleanup...
Done.
Top listing for the threads:
Enjoy!
