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 个评论

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.
Thanks, but I managed to solve this by using a different server. Probably it was a permission problem.

请先登录,再进行评论。

回答(1 个)

1 个评论

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).

请先登录,再进行评论。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by