[sldev] CPU detection code

Dale Glass dale at daleglass.net
Mon Jul 2 11:08:00 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dirk Moerenhout wrote:
> The issue is mostly that it doesn't identify any recent CPU. It just
> gives very generic info resulting in: Intel Pentium Pro (Unknown
> model)    146003 AMD (Unknown model)    110162 Intel Pentium 4
> (Unknown model)    103905
>
> That's about 70% of the registered CPU's.
>
> It's not too hard to improve upon that but in the end what we really
> need is statistics on the features the CPU supports. Just a list with
>  total cpu's and how many of them support SSE, SSE2 and 3D!Now would
> do wonders.

Why not just read the data from /proc/cpuinfo? It includes about
everything you might want to know as far as I can tell.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGiT76qzdyv8vqDKgRCiRiAKCSkZ97ZpuKwmolt7sclrVUYMxeLQCdHvuB
BR4kcoWOMd3bYb9I3n8uotE=
=tsnn
-----END PGP SIGNATURE-----



More information about the SLDev mailing list