Parallel Computing: can't access to network logical unit
Show older comments
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 Comments
Edric Ellis
on 15 Jul 2015
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
on 15 Jul 2015
Answers (1)
Walter Roberson
on 15 Jul 2015
0 votes
1 Comment
Edric Ellis
on 15 Jul 2015
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).
Categories
Find more on Job and Task Creation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!