Does anyone know the difference between matlabpool and parpool since the latter was introduced in R2013b?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dear all,
Does anyone know the difference between matlabpool and parpool for running parfor loop?
I have developed a tool based on R2020b with a couple of parfor loops in the scripts. The code has been compiled to executable for a server based on R2013a. To run the parfor loops properly, I have added a few lines to specify the number of cores to be used for parallel computing in R2013a (which is not necessary since R2013b when parpool was introducted). However, the speed for running the executable is a lot longer than running the same tool locally. Despite the hardware difference, I am wondering whether the speed is being slow down because of the change of parpool to matlabpool.
Many thanks.
1 comentario
Thomas Falch
el 18 de Mzo. de 2022
The change from matlabpool to parpool was essentially just renaming the function. There have, however, been numerous changes and improvements to matlabpool/parpool and parfor since 2013, (as well as changes and improvements to MATLAB itself and other toolboxes). It would therefore not be surprising if your code runs faster in R2020b than in R2013a.
Respuestas (0)
Ver también
Categorías
Más información sobre Parallel Computing Fundamentals en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!