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

Walter Roberson
Walter Roberson 2015년 7월 15일

0 개 추천

댓글 수: 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).

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2015년 7월 14일

댓글:

2015년 7월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by