MATLAB Answers

MultiStart Parallel processing doubt

1 view (last 30 days)
Sona Sheril Antony
Sona Sheril Antony on 4 Oct 2020
Answered: Alan Weiss on 5 Oct 2020
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???

  0 Comments

Sign in to comment.

Answers (1)

Alan Weiss
Alan Weiss on 5 Oct 2020
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

  0 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!