I tried the latest version of mir-cpuid from github, it reports 16 cores and 16 threads for the 8-core Ryzen. That's no change from earlier versions, but at least slightly better than what core.cpuid does.
Comment #7 by ilyayaroshenko — 2019-05-28T10:54:13Z
(In reply to Rainer Schuetze from comment #6)
> I tried the latest version of mir-cpuid from github, it reports 16 cores and
> 16 threads for the 8-core Ryzen. That's no change from earlier versions, but
> at least slightly better than what core.cpuid does.
Thank you.
I added another one fix that uses 1E extended leaf information to retrieve the number of threads per core.
https://github.com/libmir/mir-cpuid/pull/42
Please check with recent the mir-cpuid master.
Comment #8 by dlang-bot — 2019-05-30T06:48:22Z
@rainers created dlang/druntime pull request #2620 "fix Issue 19861 - core.cpuid reports the wrong number of threads" fixing this issue:
- fix Issue 19861 - core.cpuid reports the wrong number of threads
do not use i7 detection on AMD processors
use cpuid 0x8000_001E to detect the number of threads per core
https://github.com/dlang/druntime/pull/2620
Comment #9 by dlang-bot — 2019-06-28T04:29:17Z
dlang/druntime pull request #2620 "fix Issue 19861 - core.cpuid reports the wrong number of threads" was merged into stable:
- 0723a38a858aaaae83a9c5c0d43a0400571ef2a0 by Rainer Schuetze:
fix Issue 19861 - core.cpuid reports the wrong number of threads
do not use i7 detection on AMD processors
use cpuid 0x8000_001E to detect the number of threads per core
https://github.com/dlang/druntime/pull/2620
Comment #10 by dlang-bot — 2020-05-17T16:33:19Z
dlang/druntime pull request #3107 "[dmd-cxx] fix Issue 19861 - core.cpuid reports the wrong number of threads" was merged into dmd-cxx:
- d989df32ae1645203ceb24ccfa62ddfd46f078d4 by Rainer Schuetze:
fix Issue 19861 - core.cpuid reports the wrong number of threads
do not use i7 detection on AMD processors
use cpuid 0x8000_001E to detect the number of threads per core
https://github.com/dlang/druntime/pull/3107