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, 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: 721
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 " <> 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]

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