The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: spmd and parfor with large broadcast variables
Replies: 2   Last Post: Dec 31, 2012 3:11 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Evan Rhee

Posts: 4
Registered: 4/3/11
Re: spmd and parfor with large broadcast variables
Posted: Dec 31, 2012 3:11 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello Edric, I'm having the same problem as the person above and would love to use your code. Could you please clarify your first example

> to minimise the data transfer. If 'loadBigData' can run on the labs
> (i.e. has access to the data files), you could do:
> bigdWrapper = WorkerObjWrapper(@loadBigData, {});
> r = zeros(100,1);
> parfor ii = 1:100,
> r(ii) = doSomething(ii,bigdWrapper.Value);
> end

from the second?

- > otherwise create bigdWrapper like so:
> bigdWrapper = WorkerObjWrapper(loadBigData());

What would the entire code of the second example look like? Also are there any improvements you could make on the existing code? I will work on using it and possibly provide feedback.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.