Bug 8973 – core.cpuid.coresPerCPU returning incorrect value.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2012-11-07T09:38:00Z
Last change time
2015-10-04T18:19:10Z
Assigned to
nobody
Creator
kbzombie

Comments

Comment #0 by kbzombie — 2012-11-07T09:38:21Z
Today i noticed that this property was returning a value of 4, when i only have 2 cores. This is no big deal. I just thought i would mention it to someone because i couldnt find a similar issue submitted here in a search. CPU: AMD Athlon II x2 215 OS: Windows 7 Ultimate sp1 x64
Comment #1 by dbugz — 2015-04-26T07:04:35Z
Unless you can provide us with some debug data for this function, nobody can debug this unless they have the exact same or similar CPU, which I certainly don't have.
Comment #2 by temtaime — 2015-04-26T17:07:04Z
Confirmed, returning 16 for me(fx 8350).
Comment #3 by rsw0x — 2015-07-02T05:35:01Z
Returns 16 for me with FX-8350 on Linux 4.0 x86-64 Appears to be an AMD issue.
Comment #4 by temtaime — 2015-07-02T07:31:33Z
Appears to be a phobos issue because other tools display normal count.
Comment #5 by github-bugzilla — 2015-08-23T06:41:04Z
Commit pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/f3d9ec7008578c366e543c74006959da1b3c5a23 Merge pull request #1351 from rsw0x/issue_8973 Issue 8973 - core.cpuid.coresPerCPU returning incorrect value.
Comment #6 by github-bugzilla — 2015-10-04T18:19:10Z