Parallel pool hangs on startup for all versions of Matlab

15 ビュー (過去 30 日間)
Lionel 2021 年 9 月 22 日
回答済み: Raymond Norris 2021 年 9 月 22 日
I have a critical issue with my Matlab installations that prevents me from using parallel pools on all versions of Matlab installed.
When starting a parallel pool (either from command line or manually), the process initiates and returns a result ('connected to 5 workers') and then it hangs. Using ctr+C gives the followig error message but then the window become irresponsive (which is why I had to make a screen capture:
As you might see here the problem arises when running parallel.Pool.hBuildPool. This error is independent from the vesion of Matlab: I installed version 2019b and the problem is the same, on a clen install.
This problem started after using two sessions of matlab on the same computer, each one using a parallel pool. Both crashed at some point while one was processing data, and this issue seems permanent on that computer.
Any suggestion to rsolve this?

回答 (1 件)

Raymond Norris
Raymond Norris 2021 年 9 月 22 日
Not sure why this would happen with every version of MATLAB. First try clearing out all the job files (this will destroy past job results). You list MATLAB Parallel Server, but I'm going to assume you're using just PCT/local scheduler. Let me know if you're using a different scheduler (e.g., MJS, PBS, etc.) and I'll give a slightly different version of the cleanup.
local = parcluster('local');


Find more on Startup and Shutdown 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!

Translated by