MultiStart Parallel processing doubt

1 Ansicht (letzte 30 Tage)
Sona Sheril Antony
Sona Sheril Antony am 4 Okt. 2020
Beantwortet: Alan Weiss am 5 Okt. 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???

Antworten (1)

Alan Weiss
Alan Weiss am 5 Okt. 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

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by