Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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.

Cheers!



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.