Set the number of parallel workers (optimization)
4 次查看(过去 30 天)
显示 更早的评论
Hello,
I'm using the UseParallel option in fminunc on a system with 64 cores (128 logical cores). What is the best way to set the number of parallel workers in the parallel pool? Is it best to set it to the number of physical (64) or logical (128) cores?
0 个评论
回答(1 个)
Raymond Norris
2023-6-15
64, though you can try more. You might find a 10-20% improvement as you add more workers (most likely not 2x as you get to 128)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!