Determining Processor Vender

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • aha

    Determining Processor Vender

    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.

    Regards,

    Aquil
  • aha

    #2
    Re: Determining Processor Vender

    On Sep 5, 3:00 pm, aha <aquil.abdul... @gmail.comwrote :
    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.
    >
    Regards,
    >
    Aquil
    Additionally, I've tried the platform module...platfo rm.processor() on
    my 64-bit AMD system, under Linux, returns x86_64. And under windows
    retruns an empty string ''

    Comment

    • John Machin

      #3
      Re: Determining Processor Vender

      On Sep 6, 5:07 am, aha <aquil.abdul... @gmail.comwrote :
      On Sep 5, 3:00 pm, aha <aquil.abdul... @gmail.comwrote :
      >
      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.
      >
      Regards,
      >
      Aquil
      >
      Additionally, I've tried the platform module...platfo rm.processor() on
      my 64-bit AMD system, under Linux, returns x86_64.  And under windows
      retruns an empty string ''
      This may help with Windows. My setup: (XP SP 2), Python 2.5.2. The
      chip is an AMD Turion Mobile which is 64-bit but is running 32-bit
      Windows.
      >>import os
      >>from pprint import pprint as pp
      >>pp(dict((k, v) for (k, v) in os.environ.item s() if 'PROCESSOR' in k))
      {'NUMBER_OF_PRO CESSORS': '1',
      'PROCESSOR_ARCH ITECTURE': 'x86',
      'PROCESSOR_IDEN TIFIER': 'x86 Family 15 Model 36 Stepping 2,
      AuthenticAMD',
      'PROCESSOR_LEVE L': '15',
      'PROCESSOR_REVI SION': '2402'}
      >>>
      Cheers,
      John

      Comment

      • Tim Roberts

        #4
        Re: Determining Processor Vender

        aha <aquil.abdullah @gmail.comwrote :
        >
        >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@probo.com
        Providenza & Boekelheide, Inc.

        Comment

        Working...