Thread Subject: spmd Vs pmode

Subject: spmd Vs pmode

From: Pablo Diaz

Date: 27 Jan, 2012 19:26:10

Message: 1 of 2

I'm running some code with the parallel toolbox

The problem I have now is that running exactly the same code within a spmd statement takes longer time than running it under pmode (even profiling), the results are the same but it takes 90% more time to run the same code.

Is there any difference between these two methods that may be causing this problem?

Could it be the fact that under spmd the variables are of composite type?

thanks in advance.

Subject: spmd Vs pmode

From: Edric M Ellis

Date: 30 Jan, 2012 08:15:18

Message: 2 of 2

"Pablo Diaz" <pabloadr87@hotmail.com> writes:
> I'm running some code with the parallel toolbox
>
> The problem I have now is that running exactly the same code within a spmd
> statement takes longer time than running it under pmode (even profiling), the
> results are the same but it takes 90% more time to run the same code.
>
> Is there any difference between these two methods that may be causing this problem?
>
> Could it be the fact that under spmd the variables are of composite type?

Hi Pablo,

Running inside PMODE should be virtually identical to running inside
SPMD, except of course you need to use 'matlabpool open' with SPMD. If
you open and close many SPMD blocks, this might cause additional
overhead. Do you have any example code that you could post?

Cheers,

Edric.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
spmd Pablo Diaz 27 Jan, 2012 14:29:12
pmode Pablo Diaz 27 Jan, 2012 14:29:12
parallel Pablo Diaz 27 Jan, 2012 14:29:12
composite Pablo Diaz 27 Jan, 2012 14:29:12
rssFeed for this Thread

Contact us at files@mathworks.com