How to run multiple different scripts in parallel ?
이전 댓글 표시
Hi,
I am trying to paralellize a large job and the best solution I can think of so far is to break it up in several different scripts and send each script to a different core. Since I can't find any information in the documentation about how to acomplish this I need to ask for help. The idea is something like this:
matlabpool open local 4
Send each of the following: script1.m, script2.m, script3.m and script4.m to a separate core for a simultaneous execution
matlabpool close
Now my question is how should the code look like in between the two matalbpool statements except the code for the four scripts ?
Thank You in advance.
Mark
답변 (1개)
Richard Brown
2012년 10월 15일
One way to do it
matlabpool open local 4
spmd
switch labindex
case 1
script1
case 2
script2
case 3
script3
case 4
script4
end
end
matlabpool close
카테고리
도움말 센터 및 File Exchange에서 Job and Task Creation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!