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

Contact us at files@mathworks.com