Parallel Computing Toolbox - Need help to start with...

조회 수: 5 (최근 30일)
Alok D
Alok D 2012년 1월 29일
Hi.. I'm a student and 'm trying to configure Matlab R2010a Parallel Computing Toolbox for a client and one worker. Matlab doc doesn't talk much on the configuration part. Tried the one given on http://www.mathworks.in/help/toolbox/distcomp/f5-16141.html - not very clear and hence didn't work. As a beginner, I just want to run a simple parfor-loop on two machines. I would be grateful if someone provides me a step-by-step solution for how to, basically, connect two systems using Matlab.. Thanks for your time..

채택된 답변

Titus Edelhofer
Titus Edelhofer 2012년 1월 29일
Hi Alok,
some clarifications: you want to use "two systems". Does this mean, two different machines? In this case the Parallel Computing Toolbox will not be sufficient but you will need to run the MATLAB Distributed Computing Server ... The Parallel Computing Toolbox is bound to one "physical" machine only.
Titus
  댓글 수: 1
Alok D
Alok D 2012년 1월 30일
Hi Titus,
Thanks a million! Will check the doc for Distributed Computing Server and get back here if I need to.. Thanks again! :)
Alok

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Alok D
Alok D 2012년 1월 30일
Hi Titus,
Ur answer helped me! All the configurations are now done.. One more help if possible.. Need a sample code to run, say a basic parfor-loop, parallelly on two machines. Tried something using the doc, ended up running it ultimately in one system only.. Thanks a ton, anyway!
Alok

Titus Edelhofer
Titus Edelhofer 2012년 1월 31일
Hi Alok,
a simple sample that employs all workers (and therefore should spread across the machines your workers run on) would be
function testparfor
matlabpool open
n = 500;
x = zeros(n, 1);
parfor i=1:n
x(i) = rank(magic(i));
end
Make sure, that the default configuration is not the local configuration but the jobmanager configuration you have done.
Titus
  댓글 수: 1
Alok D
Alok D 2012년 2월 2일
Hi Titus,
Worked! Thanks a million!
Nice to see such helpful people out here.. I hope I can also help others with whatever I know..!
Alok

댓글을 달려면 로그인하십시오.

카테고리

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