matlabpool hangs on local scheduler for PCT 5.2 with Internet active Internet connection

11 views (last 30 days)
I'm trying to run my 1st PCT script. The entire script is:
matlabpool open local 4
c=zeros(1000,4);
parfor i=1:4,
c(:,i)=eig(rand(1000));
end
matlabpool CLOSE;
When I start this script it hangs on matlabpool. What's wrong here?
Mike
  1 Comment
Kaustubha Govind
Kaustubha Govind on 5 Oct 2011
Mike: There might be some issue with your configuration. I recommend contacting MathWorks Tech Support regarding this issue.

Sign in to comment.

Accepted Answer

Jason Ross
Jason Ross on 5 Oct 2011
If you run the Configuration Validator (Parallel menu, manage configurations, select "local", and validate it), does it validate successfully?
Also, if you look st the processes running on your machine, do additional MATLAB processes start?
Beyond that, please contact support. There should really be nothing "extra" to do to make the local scheduler work.
  1 Comment
Michael
Michael on 5 Oct 2011
Jason and Kaustubha,
Thank you both for your comments and answers. I've discovered that starting Matlab from the Start menu, 'ver' shows the Parallel Computing Toolbox, yet if I start Matlab from a shortcut on my desktop (which points to the same target, but a different starting folder), 'ver' does not show the PCT. Furthermore the Configuration Validator validates successfully when Matlab is started from the Start menu, however the above script still hangs on matlabpool. Multiple copies of Matlab processes do appear in the task manager, yet the system resources are not taxed. (This machine is an i7 with 16GB of RAM. The 'C' drive is a RAID 5 of 4 64GB SSD's, the 'D' drive is a 2TB disk. I am nowhere near my resource limits in the task manager (CPU 0%, Mem 2.21GB). You have both suggested 'punt' and ask for help. I think you are both RIGHT!

Sign in to comment.

More Answers (1)

Michael
Michael on 6 Oct 2011
Patrick Sullivan (Mathworks Installation and Licensing Specialist) correctly identified this issue as a Toolbox visibility issue. The following Matlab commands fixed the issue:
Issue the following Matlab commands: >> restoredefaultpath >> userpath reset >> savepath Exit, then restart Matlab.
Evidently these commands restore the visibility of all licensed toolboxes. (Very handy thing to know...)

Categories

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!