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, data stuck in lab?
Replies: 1   Last Post: Jan 3, 2013 2:56 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Edric Ellis

Posts: 716
Registered: 12/7/04
Re: SPMD, data stuck in lab?
Posted: Jan 3, 2013 2:56 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Chuck37 " <chuck3737@yahooremovethis.com> writes:

> I have a big hunk of data that I generated in an SPMD loop. I kept it
> in lab (worker) number one. When I try to get it like:
> Mlocal = M{1}
> it complains that the data is too big. It says something about
> transparency if I try to save it to disk inside SPMD.

You cannot write a SAVE statement directly in the body of an SPMD block
because of transparency, but you can pass the data to a function which
calls save. I.e. something like this:

M = <...>;
saveData('myFileName', M);

function saveData(var, fname)
save(fname, 'var');



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

[Privacy Policy] [Terms of Use]

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