MultiStart Parallel processing doubt
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Surrogate Optimization finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!