Determining Processor Vender

Tim Roberts timr at probo.com
Sat Sep 6 21:57:53 EDT 2008


aha <aquil.abdullah at gmail.com> wrote:
>
>Dose anyone know of a cross-platform method for determining the vendor
>of a processor?  Under linux I can check /proc/cpuinfo.  What I'd like
>to be able to do is determine if a processor is AMD or Intel, so that
>I can use the appropriate numerical libraries for my application.

If you have a numerical library that uses processor-specific instructions,
then the library must be in C with assembler.  If so, just add another
function that does a "cpuid" instruction and return the results.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list