Parallel Matlab using Parallel Computing Toolbox

Matlab / Octave programming forum.

Parallel Matlab using Parallel Computing Toolbox

Postby kamil on April 8th, 2008, 3:07 am

very useful info on parallel computing using Matlab: parfor the Course

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:
quad-core-parallel-matlab.png
Distributed Matlab worker threads
quad-core-parallel-matlab.png (149.43 KB) Viewed 326 times

Enjoy!
User avatar
kamil
Linux Adept
 
Posts: 119
Joined: January 18th, 2008, 1:22 am
Location: Brisbane, Australia

Re: Parallel Matlab using Parallel Computing Toolbox

Postby juliakmartine on July 28th, 2010, 2:04 pm

Matlab is very popular Program for parallel Computing whenever we pass the signal for the Parallel Computing we can find the message like these are:
Sending start signal to all the labs
Sending a stop signal to all the labs...
Waiting for parallel job to finish...
Performing parallel job cleanup...
juliakmartine
New Member
 
Posts: 4
Joined: July 28th, 2010, 1:56 pm

Re: Parallel Matlab using Parallel Computing Toolbox

Postby rickyphulara on May 23rd, 2011, 11:01 pm

That's really superb coding thanks to share with us this superb post.
rickyphulara
Member
 
Posts: 10
Joined: May 21st, 2011, 1:11 am


Return to Matlab

Who is online

Users browsing this forum: No registered users and 0 guests

cron

dsplabs homelinux bloglinux forums new!travel photography
©2012 dsplabs.com.au