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 56 times

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

Return to Matlab

Who is online

Users browsing this forum: No registered users and 0 guests

cron

dsplabs homelinux bloglinux forums new! travel photographyawklores new! cryptographyjames' home
©2009 dsplabs.com.au