MultiStart Parallel processing doubt
이전 댓글 표시
If I am using MultiStart with parallel processing with 4 cores, and give number of start points as 100, does that mean each processor will only work with 25 trial points? Will the time taken now be same as using a single processor and 25 trial points???
답변 (1개)
Alan Weiss
2020년 10월 5일
0 개 추천
I am not an expert in MATLAB parallel computation, but I believe that generally the answer is no to both of your questions. While I do not have a completely clear understanding of parfor, which is what MultiStart uses internally for parallel computation, I believe that parfor tries to keep processors busy. So if some of your workers finish before others, I believe that parfor allocates more tasks to the workers that otherwise would be idle, so it is not necessarily true that each worker has the same number of tasks. For your second question, there is overhead in allocating jobs to workers, so you never get N times speedup with N cores.
Alan Weiss
MATLAB mathematical toolbox documentation
카테고리
도움말 센터 및 File Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!