How to Execute Parallel program through SPMD or BATCH or TASK?

조회 수: 2(최근 30일)
Hi Everybody,
I need one Help From You.I want to execute my code parallel using SPMD. But not able to Run It. Already I was try to parfor Loop But I don't Know how to classify the Variable. So now I am try to run parallel through SPMD concept. But this program Run in same duration for each worker. But i want to split the work and run parallel.
This is my sample code
Otherwise how can I Run parallel program through TASK or BATCH. Thank You so much.

채택된 답변

Edric Ellis
Edric Ellis 2012년 6월 29일
Inside an SPMD block, you need to use a for-loop over a distributed range.
In short
for i1=drange(1:n)
  댓글 수: 5
PRIYANGA 2012년 7월 13일
ok sir thank you

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

추가 답변(0개)


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!

Translated by