system call with parfor
조회 수: 12 (최근 30일)
이전 댓글 표시
hi i have a script like this
for i=1:10
parfor n=1:20
system(command(i,n));
end
end
I'd like the first for the first expected the end of all system Call and then continue with the cycle .
댓글 수: 1
Jan
2013년 1월 31일
Does this mean, that you want to wait after the PARFOR loop until all system calls have been finished?
답변 (1개)
Jason Ross
2013년 1월 31일
I'm not entirely clear what you mean by "I'd like the first for the first expected the end of all system Call and then continue with the cycle", but parfor does not guarantee that the iterations happen in any order.
If you'd like more control of what happens where, you might want to look at using spmd.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!