Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

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.

Contact us