Does anyone know the difference between matlabpool and parpool since the latter was introduced in R2013b?
9 次查看(过去 30 天)
显示 更早的评论
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 个评论
Thomas Falch
2022-3-18
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.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel Computing Fundamentals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!