Why does my MATLAB becomes unresponsive (hangs) when I issue MATLABPOOL OPEN in Parallel Computing Toolbox 4.3 (R2010a)?

조회 수: 1 (최근 30일)
When I issue the MATLABPOOL OPEN command MATLAB just hangs. I can use CTRL-C to interrupt the command and return to the command prompt. Similarly, when I try to validate my local parallel configuration the validation hangs at MATLABPOOL OPEN. There is nothing special about my configuration, except that inside my startup.m file I ask the user to specify some configuration options.

답변 (1개)

Murugavel Sivagnanam
Murugavel Sivagnanam 2011년 1월 12일
This behavior is expected and is due to how MATLABPOOL OPEN command works. When MATLABPOOL OPEN is issued, the command starts a specified number of headless MATLAB workers. Each of these workers executes the startup.m file, and awaits user input. Because the headless workers do not have desktops, user is not aware that they are requesting input and thus it appears that the MATLABPOOL OPEN hangs the system.
As a workaround either remove the user input commands from the startup.m file, or choose a default setting that is executed when the script is executed on a headless node, using the JAVACHK('DESKTOP') command as shown in the example below:
if(isempty(javachk('desktop')))
disp('Interactive mode');
else
disp('head less mode');
end

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by