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

Added support for Windows thread groups (to use all cores on a 3990X and similar) #188

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cwoffenden
Copy link
Contributor

On Windows with more than 64 cores (and possibly with multiple CPUs with fewer cores, although not tested) only the first 64 is supported by the job_pool. This addition spreads the threads across all CPUs. A picture speaks more, so here's the before, compiling as-is:
before
And here's after with this PR:
after
When compressing to UASTC using:

basisu.exe -uastc -uastc_level 4 frymire.png

This reduces the best time (from four runs) from 2.823 seconds to 1.766 seconds.

(If I were to make any changes, I'd spend more time making sure the main thread is in the smaller group, but I thought I'd publish this earlier to gather any interest.)

@cwoffenden cwoffenden changed the title Added support for Windows thread groups Added support for Windows thread groups (to use all cores on a 3990X and similar) Nov 19, 2020
@richgel999
Copy link
Contributor

This is great, thank you. I'll merge this PR in next.

@richgel999
Copy link
Contributor

I'll merge this

@richgel999
Copy link
Contributor

Just a FYI - v1.15 is out - so I have time to merge this.

@cwoffenden
Copy link
Contributor Author

(Rebased onto latest since this was quite out of date)

@richgel999
Copy link
Contributor

Thanks- I'll be merging this change into the next milestone's OpenCL release, due end of Dec/early Jan.

@cwoffenden
Copy link
Contributor Author

cwoffenden commented Oct 6, 2021

NP - I was bringing it up-to-date (partially) for my own testing.

(I can make Threadripper available over VPN/RDP for you to test, BTW)

@richgel999
Copy link
Contributor

Just a FYI I'm merging this change into v1.16 (the January 2022 release).

@richgel999 richgel999 added the enhancement New feature or request label Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants