MultiStart Parallel processing doubt

1 vue (au cours des 30 derniers jours)
Sona Sheril Antony
Sona Sheril Antony le 4 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???

Réponses (1)

Alan Weiss
Alan Weiss le 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

Catégories

En savoir plus sur Surrogate Optimization dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by