Why won't parallel pool start under MCR r2022b?

I have a codebase that starts a local parallel pool when performing one unique operation. I'm running this code inside a Windows Server 2022 environment. This codebase successfully launches the local parallel pool, and the pool performs all operations successfully, if I execute the code from within Matlab r2022b via the Command Window. But if I compile it into an application and launch the executable, the executable is unable to start the local parallel pool successfully. The executable is able to perform all other operations successfully; just not the operation starting the parallel pool. Any thoughts about why the executable does not function correctly?

1 Comment

I have the same problem. I export the cluster profile of 'Local' into local.mlsettings and pass it to the executable file as an input argument. But the parpool function crashes:
Starting parallel pool (parpool) using the 'local' profile ...
Error using parpool (line 149)
Parallel pool failed to start with the following error.
Error in tmpVelVorMean_LSC_Ver9_Curta (line 125)
Caused by:
Error using parallel.internal.pool.InteractiveClient>iThrowWithCause (line 676)
Failed to initialize the interactive session.
Error using parallel.internal.pool.InteractiveClient>iThrowIfBadParallelJobStatus (line 814)
The interactive communicating job failed with no message.
parallel:cluster:PoolCreateFailed

Sign in to comment.

Answers (1)

Can you confirm that you've included the cluster profile in your application? See this documentation page for more information.

1 Comment

Yes. I've exported the cluster profile as a .mlsettings file and it is included in the application package.

Sign in to comment.

Categories

Products

Release

R2022b

Asked:

on 1 Aug 2023

Commented:

on 12 Apr 2024

Community Treasure Hunt

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

Start Hunting!