开发者

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 multip开发者_如何转开发le 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!


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)?


This post is to add information in response to a part of original poster's question

[OP] 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)...

The paper mentioned above is no longer available

In its place MathWorks offers MATLAB users a way to set up and distribute computations on a cluster running MATLAB Distributed Computing Server (MDCS) on Amazon EC2. More information is available here: http://www.mathworks.com/ec2

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜