Getting # Physical CPUs

dsimcha dsimcha at yahoo.com
Thu Jul 15 09:39:06 PDT 2010


== Quote from Don (nospam at nospam.com)'s article
> dsimcha wrote:
> > == Quote from Don (nospam at nospam.com)'s article
> >> dsimcha wrote:
> >>> == Quote from Don (nospam at nospam.com)'s article
> >>>> [snip]
> >>>> Thanks, that's definitely a bug. The code in core.cpuid has not been
> >>>> tested on the most recent CPUs (Intel added a totally new method) and
> >>>> their documentation is quite convoluted. It's hard to get it right
> >>>> without an actual machine.
> >>> Bug 4462.  http://d.puremagic.com/issues/show_bug.cgi?id=4462
> >> Please check if the latest druntime commit fixes this.
> >
> > Thanks.  Unfortunately I can't test this because the Linux build script for Phobos
> > is broken on my machine in some inscrutable way.  Frankly, my success rate at
> > building stuff from other people's make files is well under 50%.  Make is just a
> > horrible technology that needs to die a horrible death.  We should be eating our
> > own dogfood and using rdmd for build scripts.
> I agree.
> In this case, core.cpuid is completely stand-alone. So you could just
> copy it into another directory and change the module statement.

Great idea.  Unfortunately that still doesn't fix it.  I get different wrong
information on some machines, but it's still wrong, and the specific example I
posted to Bugzilla hasn't changed at all.


More information about the Digitalmars-d mailing list