Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only use thread binding with blas backend #1797

Merged
merged 2 commits into from
Dec 4, 2022

Conversation

borg323
Copy link
Member

@borg323 borg323 commented Nov 23, 2022

Apparently binding threads to a windows processor group is a bad idea if lc0 is used simultaneously with SF for analysis: both engines try to use the same cores.
Since thread binding is only useful for more than 32 threads, in most cases it may be better to let windows handle the allocation.
The only real use case is with the blas backend, so here thread binding is made conditional on USE_BLAS. This does not include the eigen backend, but I think this is acceptable as it is mainly intended as a reference implementation.

@mooskagh
Copy link
Member

Would it make sense to call Numa::Init() from blas backend creation instead?

(the Numa::Init function can also keep the static flag to make sure it's not initialized twice)

@borg323 borg323 merged commit b608c1b into LeelaChessZero:master Dec 4, 2022
@borg323 borg323 deleted the unbind branch December 4, 2022 11:31
borg323 added a commit to borg323/lc0 that referenced this pull request Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants