Fail to start parpool

765 views (last 30 days)
Clyde S
Clyde S on 3 Jan 2017
Commented: Erick Cardozo on 28 Oct 2023
Hi, All:
I am trying to run Matlab parallel computing in a Mac Pro, but I encounter the following error message when I start the parallel pool using “parpool” command:
—————————————————
parpool Starting parallel pool (parpool) using the 'LocalDefaultProfile' profile ... Error using parpool (line 103) Failed to start a parallel pool. (For information in addition to the causing error, validate the profile 'LocalDefaultProfile' in the Cluster Profile Manager.)
Caused by: Error using parallel.internal.pool.InteractiveClient>iThrowWithCause (line 665) Failed to initialize the interactive session. Error using parallel.internal.pool.InteractiveClient>iThrowIfBadParallelJobStatus (line 766) The interactive communicating job failed with no message.
—————————————————
I am using Matlab R2016b, and the (Late 2013) Mac Pro is running OS X El Capitan version 10.11.6. I also have tried the following but none of them works.
1. This problem happened once several months ago when I installed R2016b for the first time on this computer. At that time I was able to solve this problem by creating a new default local cluster profile. But this time the trick doesn’t work anymore.
2. I tried to re-install R2016b but I got the same error message.
3. I tried to set "distcomp.feature( 'LocalUseMpiexec', false );”, but I got the same error message.
4. I also tried to set "distcomp.feature( 'LocalUseMpiexec', true );” because some people found it working for them, but it takes forever to start the parallel pool.
I appreciate if anyone can share the solution of this problem.
  1 Comment
Edric Ellis
Edric Ellis on 5 Jan 2017
This is definitely not expected - contact MathWorks support who should be able to help you resolve this problem.

Sign in to comment.

Answers (3)

MathWorks Support Team
MathWorks Support Team on 7 Mar 2023
  2 Comments
idermann
idermann on 12 Apr 2023
Deleting .matlab/local_cluster_jobs solved the problem
Erick Cardozo
Erick Cardozo on 28 Oct 2023
En matlab r2023b update3, tambien me sivio eliminar el directorio "/local_cluster_jobs", ubicado en C:\Users\<usuario>\AppData\Roaming\MathWorks\MATLAB\local_cluster_jobs. Luego reiniciar Matlab. (Puede que tengas que repetir este procedimiento hasta en tres ocasiones)

Sign in to comment.


Rana Adhikari
Rana Adhikari on 21 Mar 2019
I am getting this using 2017a & 2017b on a Mac Pro running Sierra

emjey
emjey on 4 Oct 2019
  1 Comment
Lightonz
Lightonz on 17 Feb 2021
2021, matlab version 2020b here. Same problem, differen solution. In my case, a function (split) had the same name as matlab buildin function. I executed
restoredefaultpath;
and removed the file from my startup skript. It seems like parpool rereads the startup file. So, make sure it is not reloaded there.
By the way, you can check this error by opening "Parallel Preferneces" in the lower left corner, then go to Parallel Computing Toolbox >> Cluster Profle Manager >> Click on validate. In case it fails, click on the test to see why it failed.

Sign in to comment.

Categories

Find more on Parallel Computing Fundamentals in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!