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: Version 2012b breaks parallel toolbox code
Replies: 1   Last Post: Mar 7, 2013 2:44 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Edric Ellis

Posts: 721
Registered: 12/7/04
Re: Version 2012b breaks parallel toolbox code
Posted: Mar 7, 2013 2:44 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Jessica Mustard" <> writes:

> My parallel code stopped working with the new version 2012b,
> specifically I have code that grabs the ID of the current work and
> writes files with file names including that ID. This way I can write
> log files without the different workers interrupting each other.
> t = getCurrentTask;
> id = num2str(t.ID);
> fname = [fnameroot filesep 'log_' id '.txt'];
> Did this happen to anybody else? Anybody know why? Is there a more
> recommended method for achieving this same thing?

This code should continue to work in R2012b. Can you give more details
about what's going wrong, and in what context? I just tried this in
R2012b, and it worked as I expected:

>> matlabpool open local 3
>> fnameroot = 'foo';
>> spmd, t = getCurrentTask; id = num2str(t.ID); fname = ['foo' filesep 'log_' id '.log'], end

Lab 1:
fname =
Lab 2:
fname =
Lab 3:
fname =



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.