Skip to content

Default value for the number of threads #89

@avdosev

Description

@avdosev

The current default value is cpu_count/2:

self.n_threads = n_threads or max(multiprocessing.cpu_count() // 2, 1)

This value does not seem to be optimal for multicore systems. For example, a CPU with 8 cores will have 4 cores idle. Or to put it simply, we will get twice the slowdown (if there are no more nuances in model execution).

Related issues: #71

In this discussion I would like to know the motivation for such a default value, as it seems that it is not obvious to most users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    hardwareHardware specific issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions