Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Path dependencies in Distributed matlab
Date: Wed, 23 Jul 2008 19:00:22 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 26
Message-ID: <g67v46$dtn$1@fred.mathworks.com>
References: <9010494.1216837076779.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1216839622 14263 172.30.248.37 (23 Jul 2008 19:00:22 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 23 Jul 2008 19:00:22 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869871
Xref: news.mathworks.com comp.soft-sys.matlab:481316



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