numpy.distutils.cpuinfo
index
/usr/lib/python2.6/dist-packages/numpy/distutils/cpuinfo.py

cpuinfo
 
Copyright 2002 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@cens.ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the NumPy (BSD style) license.  See LICENSE.txt that came with
this distribution for specifics.
 
NO WARRANTY IS EXPRESSED OR IMPLIED.  USE AT YOUR OWN RISK.
Pearu Peterson

 
Modules
       
commands
os
platform
re
sys
types
warnings

 
Classes
       
object
CPUInfoBase
DarwinCPUInfo
IRIXCPUInfo
LinuxCPUInfo
LinuxCPUInfo
SunOSCPUInfo
Win32CPUInfo

 
class CPUInfoBase(object)
    Holds CPU information and provides methods for requiring
the availability of various CPU features.
 
  Methods defined here:
__getattr__(self, name)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class DarwinCPUInfo(CPUInfoBase)
    
Method resolution order:
DarwinCPUInfo
CPUInfoBase
object

Methods defined here:
__init__(self)

Data and other attributes defined here:
info = None

Methods inherited from CPUInfoBase:
__getattr__(self, name)

Data descriptors inherited from CPUInfoBase:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class IRIXCPUInfo(CPUInfoBase)
    
Method resolution order:
IRIXCPUInfo
CPUInfoBase
object

Methods defined here:
__init__(self)
get_ip(self)

Data and other attributes defined here:
info = None

Methods inherited from CPUInfoBase:
__getattr__(self, name)

Data descriptors inherited from CPUInfoBase:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class LinuxCPUInfo(CPUInfoBase)
    
Method resolution order:
LinuxCPUInfo
CPUInfoBase
object

Methods defined here:
__init__(self)

Data and other attributes defined here:
info = [{'address sizes': '36 bits physical, 48 bits virtual', 'apicid': '0', 'bogomips': '5585.13', 'cache size': '6144 KB', 'cache_alignment': '64', 'clflush size': '64', 'core id': '0', 'cpu MHz': '2800.000', 'cpu cores': '2', 'cpu family': '6', ...}, {'address sizes': '36 bits physical, 48 bits virtual', 'apicid': '1', 'bogomips': '5587.02', 'cache size': '6144 KB', 'cache_alignment': '64', 'clflush size': '64', 'core id': '1', 'cpu MHz': '800.000', 'cpu cores': '2', 'cpu family': '6', ...}]

Methods inherited from CPUInfoBase:
__getattr__(self, name)

Data descriptors inherited from CPUInfoBase:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SunOSCPUInfo(CPUInfoBase)
    
Method resolution order:
SunOSCPUInfo
CPUInfoBase
object

Methods defined here:
__init__(self)

Data and other attributes defined here:
info = None

Methods inherited from CPUInfoBase:
__getattr__(self, name)

Data descriptors inherited from CPUInfoBase:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Win32CPUInfo(CPUInfoBase)
    
Method resolution order:
Win32CPUInfo
CPUInfoBase
object

Methods defined here:
__init__(self)

Data and other attributes defined here:
info = None
pkey = r'HARDWARE\DESCRIPTION\System\CentralProcessor'

Methods inherited from CPUInfoBase:
__getattr__(self, name)

Data descriptors inherited from CPUInfoBase:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
cpuinfo = class LinuxCPUInfo(CPUInfoBase)
    
Method resolution order:
LinuxCPUInfo
CPUInfoBase
object

Methods defined here:
__init__(self)

Data and other attributes defined here:
info = [{'address sizes': '36 bits physical, 48 bits virtual', 'apicid': '0', 'bogomips': '5585.13', 'cache size': '6144 KB', 'cache_alignment': '64', 'clflush size': '64', 'core id': '0', 'cpu MHz': '2800.000', 'cpu cores': '2', 'cpu family': '6', ...}, {'address sizes': '36 bits physical, 48 bits virtual', 'apicid': '1', 'bogomips': '5587.02', 'cache size': '6144 KB', 'cache_alignment': '64', 'clflush size': '64', 'core id': '1', 'cpu MHz': '800.000', 'cpu cores': '2', 'cpu family': '6', ...}]

Methods inherited from CPUInfoBase:
__getattr__(self, name)

Data descriptors inherited from CPUInfoBase:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
command_by_line(cmd, successful_status=(0,), stacklevel=1)
command_info(successful_status=(0,), stacklevel=1, **kw)
getoutput(cmd, successful_status=(0,), stacklevel=1)
key_value_from_command(cmd, sep, successful_status=(0,), stacklevel=1)

 
Data
        __all__ = ['cpu']
__file__ = '/usr/lib/python2.6/dist-packages/numpy/distutils/cpuinfo.pyc'
__name__ = 'numpy.distutils.cpuinfo'
__package__ = 'numpy.distutils'
cpu = <numpy.distutils.cpuinfo.LinuxCPUInfo object at 0x70c9210>