Problems with initializing parallel computing

7 views (last 30 days)
Hi, I was trying to initialize parallel computing by issuing command 'parpool', but I received the following errors. Does anyone know why this is happening? Thank you very much.
Warning: matlabpool will be removed in a future release.
Use parpool instead.
Starting matlabpool using the 'local' profile ... Warning: Unable to calculate the dependencies of the files:
distcomp.nop
because:
Cannot CD to C:\Users\Lab\AppData\Local\Temp (Name is nonexistent or not a
directory).
> In AttachedFiles>AttachedFiles.calculateAttachedFiles at 221
In Task.Task>Task.hCalculateDependentFiles at 535
In Task.Task>Task.hCalculateAndCacheDependentFiles at 554
In Job.Job>@(t)t.hCalculateAndCacheDependentFiles(taskFunctionCache) at 686
In Job.Job>Job.attachRequiredFiles at 685
In Job.Job>Job.submit at 300
In InteractiveClient>InteractiveClient.start at 328
In Pool.Pool>iStartClient at 537
In Pool.Pool>Pool.hBuildPool at 434
In MatlabpoolHelper>MatlabpoolHelper.doOpen at 329
In MatlabpoolHelper>MatlabpoolHelper.doMatlabpool at 129
In matlabpool at 142
Error using matlabpool (line 148)
Failed to start a parallel pool. (For information in addition to the causing error,
validate the profile 'local' in the Cluster Profile Manager.)
Caused by:
Error using parallel.internal.pool.InteractiveClient/start (line 330)
Failed to start pool.
Error using cd
Cannot CD to C:\Users\Lab\AppData\Local\Temp (Name is nonexistent or not a
directory).
  5 Comments
Greg
Greg on 16 Sep 2016
It definitely sounds like you have a problem with your temp directory. I can't imagine how many things would go horribly wrong in Windows if it got completely deleted... Is the username accurate, and are your folder permissions accurate?
On a different note, I recommend "isdir(tempdir);" rather than the exist function. It's a little more readable, and I've always preferred actual Boolean return values.
Walter Roberson
Walter Roberson on 16 Sep 2016
tempdir() looks at the environment variables TEMP and TMP (in that order.) It appears that somehow you have modified the environment variable to include two directory names, or else that your environment variables have been incorrectly configured. Notice that it complains about not being able to cd to
C:\Users\XXXX\AppData\Local\Temp; C:\Program Files\PCL 1.6.0\bin
which obviously intended to be a pair of directory names. The TEMP and TMP environment variables are, however, not designed to be able to list multiple directories.
You should look at
getenv('TEMP')
getenv('TMP')
to see which one is wrong, and you should example your Windows environment variables; see for example http://www.computerhope.com/issues/ch000549.htm

Sign in to comment.

Answers (0)

Categories

Find more on File Operations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!