Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup matlabpool for multiple processors?

I just setup a Extra Large Heavy Computation EC2 instance to throw it at my Genetic Algorithms problem, hoping to speed up things.

This instance has 8 Intel Xeon processors (around 2.4Ghz each) and 7 Gigs of RAM.

On my machine I have an Intel Core Duo, and matlab is able to work with my two cores just fine by runinng:

matlabpool open 2

On the EC2 instance though, matlab only is capable of detecting 1 out of 8 processors, and if I try running:

matlabpool open 8

I get an error saying that the ClusterSize is 1 since there's only 1 core on my CPU. True, there is only 1 core on each CPU, but I have 8 CPUs on the given EC2 instance!

So the difference from my machine and the ec2 instance is that I have my 2 cores on a single processor locally, while the EC2 instance has 8 distinct processors.

My question is, how do I get matlab to work with those 8 processors?

I found this paper, but it seems related to setting up matlab with multiple EC2 instances (not related to multiple processors on the same instance, EC2 or not), which is not my problem.

Any help appreciated!

Note: the point is not EC2, I am remoting into it and running matlab on it as if it was any other machine. The point is that I can't get matlab to see the 8 processors!

like image 838
JohnIdol Avatar asked Mar 28 '10 19:03

JohnIdol


1 Answers

MATLAB isn't seeing all 8 cores. Set it manually. Parallel menu -> Manage Configurations. Right-click on the "local" line. In the scheduler tab, set the "Number of workers available to scheduler" to 8.


Original answer was a question getting more detail:

Are you trying to use MDCS on EC2 (and MATLAB's user interface on your PC), or are you trying to run MATLAB's user interface and PCT on EC2 (via ssh or vnc or the like)?

like image 150
DaveWalend Avatar answered Oct 16 '22 20:10

DaveWalend