Set the number of parallel workers (optimization)

5 visualizaciones (últimos 30 días)
Gerd Fuchs
Gerd Fuchs el 15 de Jun. de 2023
Respondida: Raymond Norris el 15 de Jun. de 2023
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?

Respuestas (1)

Raymond Norris
Raymond Norris el 15 de Jun. de 2023
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)

Categorías

Más información sobre Get Started with Optimization Toolbox en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by