Parallel Computing: can't access to network logical unit
古いコメントを表示
I want to run a code on a cluster of several PCs using as current directory a common logical unit, that I called Q:\. The correct path to this folder is, say,
\\myserver\myfolder
so I'm starting the parallel script with
spmd
cd('\\myserver\myfolder')
end
and, to be sure, I even put the folder in "AdditionalPaths" in the Properties of the Cluster Profile.
To check whether the functions and the files are reachable I use
spmd
check('function1')
end
where "function1" is a function m-file in "myfolder". Unfortunately spmd can't find the function on every PC, but just on a few of them, with no apparent reason of choice. I already checked in the issued computers if the "SYSTEM" user account (used by matlabpool) has permission to \\myserver\myfolder, but it always has.
Anybody encountered a similar situation?
P.S: I'm using on every computer in the cluster R2012a on Windows 7 64bit.
2 件のコメント
Edric Ellis
2015 年 7 月 15 日
Is it always the same machines that cannot access the network drive? I.e. try running something like
spmd
if exist('\\myserver\folder', 'dir') ~= 7
% this machine cannot see the directory,
% so print out the hostname
system('hostname')
end
end
to see if there's a pattern.
Stefano Rognoni
2015 年 7 月 15 日
回答 (1 件)
Walter Roberson
2015 年 7 月 15 日
0 投票
1 件のコメント
Edric Ellis
2015 年 7 月 15 日
In this case, I would not expect any different results from pctRunOnAll - the spmd block ought to be completely equivalent (apart from the fact that pctRunOnAll also runs on the client).
カテゴリ
ヘルプ センター および File Exchange で Job and Task Creation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!