May 11, 2019 [Issue 19861] New: core.cpuid reports the wrong number of threads | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19861 Issue ID: 19861 Summary: core.cpuid reports the wrong number of threads Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: minor Priority: P1 Component: druntime Assignee: nobody@puremagic.com Reporter: me@francescomecca.eu user~> lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 2 Core(s) per socket: 2 CPU family: 21 Model: 101 Model name: AMD A12-9700P RADEON R7, 10 COMPUTE CORES 4C+6G user~> cat cpus.d import core.cpuid; void main() { import std.stdio; writeln(threadsPerCPU(), " ", coresPerCPU()); } user~> ./cpus 1 4 This is happening also on AMD A6-6400K APU that has 2 cores and 2 threads and it reports 1 thread and 2 cores. -- |
Copyright © 1999-2021 by the D Language Foundation