bluemodel / BlueM.Opt

BlueM.Opt is an optimization framework that can be coupled with an arbitrary simulation software.
https://wiki.bluemodel.org/index.php/BlueM.Opt
GNU General Public License v3.0
2 stars 1 forks source link

Make the number of threads used for multithreaded simulations user-definable #229

Closed jamaa closed 1 year ago

jamaa commented 1 year ago

The number of threads used for multithreaded simulations is currently determined automatically. Mostly, this turns out to be 8 threads. However, those 8 threads often use so many resources that the machine cannot be used for anything else at the same time.

Therefore, the number of threads being used should be user-definable, as part of the general settings.

jamaa commented 1 year ago

Actually, the number of threads is currently determined by n_Threads = Environment.ProcessorCount + 1, which e.g. for "AMD Ryzen 5 2600 Six-Core Processor" results in 13 (12+1).

jamaa commented 1 year ago

added in v1.11.0