Thread Subject: Path dependencies in Distributed matlab

Subject: Path dependencies in Distributed matlab

From: Somesh

Date: 23 Jul, 2008 18:17:25

Message: 1 of 3

Hi All,

Has anybody used path dependencies in distributed matlab ?
Some how the following code doesn't seem to work:

j = createJob(jm,'FileDependencies',{'mymfile.m',pwd},'PathDependencies',...
    {'mytoolbox/'});

Regards,
SOmesh

Subject: Path dependencies in Distributed matlab

From: Jiro Doke

Date: 23 Jul, 2008 19:00:22

Message: 2 of 3

SOMESH <seesomi@gmail.com> wrote in message
<9010494.1216837076779.JavaMail.jakarta@nitrogen.mathforum.org>...
> Hi All,
>
> Has anybody used path dependencies in distributed matlab ?
> Some how the following code doesn't seem to work:
>
> j =
createJob(jm,'FileDependencies',{'mymfile.m',pwd},'PathDependencies',...
> {'mytoolbox/'});
>
> Regards,
> SOmesh

Hi Somesh,

Make sure the PathDependencies are absolute paths that each
worker has access to. These are essentially paths that will
get added to the path of each worker.

If you are trying to make all the files within the local
'mytoolbox' directory available to all the workers, then you
should specify that as FileDependencies. These get zipped up
and sent over the network to the workers.

jiro

Subject: Path dependencies in Distributed matlab

From: Somesh

Date: 23 Jul, 2008 19:59:45

Message: 3 of 3

Hi Jiro,
Thanks for the help.

Giving absolute path solved the problem. Thanks :-)

Regards,
SOmesh

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
distributed com... Jiro Doke 23 Jul, 2008 15:05:12
parallel computing Jiro Doke 23 Jul, 2008 15:05:12
path dependencies Jiro Doke 23 Jul, 2008 15:05:12
file dependencies Jiro Doke 23 Jul, 2008 15:05:12
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com