[Issue 4462] core.cpuid wrong on Intel machines w/ multiple physical CPUs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 27 06:54:49 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4462
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2011-02-27 06:52:01 PST ---
(In reply to comment #0)
> Test Program:
>
> import core.cpuid, std.stdio;
>
> void main() {
> writeln("Cores: ", coresPerCPU, " Threads: ", threadsPerCPU);
> }
>
> This prints the following on the machine in question:
>
> Cores: 1 Threads: 2
>
> cat /proc/cpuinfo on same machine:
>
> processor : 0
> cpu cores : 1
> processor : 1
> cpu cores : 1
> processor : 2
> cpu cores : 1
That isn't enough information to demonstrate a bug. proc/cpuinfo reports 8
processors, each with one core each. Thus, I would expect coresPerCPU to be 1.
Can you please give a valid test case? (Seems as though you'll need to display
the number of processors).
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list