Problems with initializing parallel computing

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 comentarios

Geoff Hayes
Geoff Hayes el 3 de Sept. de 2014
What happens if you create the directory C:\Users\Lab\AppData\Local\Temp?
Also, what do you get if you run the following:
tempdir
exist(tempdir, 'dir')
Antonio Abel
Antonio Abel el 16 de Sept. de 2016
Hi, I had a similar issue with a "Warning: Unable to calculate the dependencies of the files". When I run the lines explained by Edric Ellis (tempdir // exist(tempdir, 'dir' // see above), I see the following error : Error using cd Cannot CD to C:\Users\XXXX\AppData\Local\Temp; C:\Program Files\PCL 1.6.0\bin (Name is nonexistent or not a directory). Error in tempdir (line 30) curr_dir = cd(tmp_dir);
Any help will be very welcomed,
thanks in advance
Antonio
Greg
Greg el 16 de Sept. de 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.
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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Preguntada:

HC
el 3 de Sept. de 2014

Comentada:

el 16 de Sept. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by