MATLAB: Failed to start a parallel pool in matlab2015a

matlab2015aParallel Computing Toolbox

Hi, I have tried parpool and it ended as:
—————–
Error using parpool (line 103)
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>iThrowWithCause
(line 667)
Failed to initialize the interactive session.
Error using
parallel.internal.pool.InteractiveClient>iThrowIfBadParallelJobStatus
(line 768)
The interactive communicating job failed with no message.
———-
I then tried to validate the profile 'local', and got these details:
———-
VALIDATION DETAILS
Profile: local
Scheduler Type: Local
Stage: Cluster connection test (parcluster)
Status: Passed
Description:Validation Passed
Command Line Output:(none)
Error Report:(none)
Debug Log:(none)
Stage: Job test (createJob)
Status: Passed
Description:Validation Passed
Command Line Output:(none)
Error Report:(none)
Debug Log:(none)
Stage: SPMD job test (createCommunicatingJob)
Status: Failed
Description:The job errored or did not reach state finished.
Command Line Output:(none)
Error Report:(none)
Debug Log:
LOG FILE OUTPUT:
Stage: Pool job test (createCommunicatingJob)
Status: Skipped
Description:Validation skipped due to previous failure.
Command Line Output:(none)
Error Report:(none)
Debug Log:(none)
Stage: Parallel pool test (parpool)
Status: Skipped
Description:Validation skipped due to previous failure.
Command Line Output:(none)
Error Report:(none)
Debug Log:(none)
——-
I have searched for answered and tried to close my computer firewall but it didn't work. Does anyone know how to solve this problem? Thanks in advance!

Best Answer

I had the same error, and validation results. I contacted Mathworks for help and their suggestion was simple and worked for me. See below for an excerpt from their response to me:
"Thank you for contacting MathWorks Installation and Licensing Support. If you are experiencing issues with opening parpool with the local cluster, you may be having issues with the new local mpiexec implementation. It may not woork on all hardware and software configurations. Try the following command to disable this feature:
distcomp.feature( 'LocalUseMpiexec', false )
If this resolves the issue, add the line to your startup.m file. If you do not have a startup.m, create a new file called startup.m in your MATLAB startup directory and add the above line.
Disabling the local mpiexec will not slow down parpool operation but it may make parpool open more slowly. The decrease in efficacy is negligible"
Related Question