[SciPy-dev] scipy distutils questions

Arnd Baecker arnd.baecker at web.de
Wed Dec 14 15:11:41 CST 2005



On Wed, 14 Dec 2005, Arnd Baecker wrote:

> On Wed, 14 Dec 2005, Pearu Peterson wrote:
>
> [...]
>
> > Thanks for the data. I have fixed cpuinfo.py, could you try again?
> > I would expect the following output:
> >     getNCPUs=64 is_64bit is_Itanium
>
> Almost:
>
> python scipy/distutils/cpuinfo.py
> CPU information: getNCPUs=64 is_32bit is_Itanium

I think that the reason is that _is_64bit from cpuinfo.py fails
silently and therefore is_32bit is  True:

from cpuinfo import *

In [4]: cpu._is_Itanium()
Out[4]: True

n [6]: cpu._is_32bit()
Out[6]: True

In [7]: cpu._is_64bit()
---------------------------------------------------------------------------
exceptions.KeyError                                  Traceback (most
recent call last)

/work/home/baecker/INSTALL_PYTHON2/CompileDir/CompileNEW/core/scipy/distutils/<ipython
console>

/work/home/baecker/INSTALL_PYTHON2/CompileDir/CompileNEW/core/scipy/distutils/cpuinfo.py
in _is_64bit(self)
    231         if self.info[0].get('clflush size','')=='64':
    232             return 1
--> 233         if self.info[0]['uname_m']=='x86_64':
    234             return 1
    235         if self.info.get('arch','')=='IA-64':

KeyError: 'uname_m'


Note that
In [16]: print cpu.info[0]["arch"]
IA-64

looks ok

And one more:

In [18]: print cpu.info[0]
{'vendor': 'GenuineIntel', 'features': 'branchlong', 'family': 'Itanium
2', 'cpu regs': '4', 'itc MHz': '1500.000000', 'archrev': '0', 'cpu
number': '0', 'BogoMIPS': '2214.59', 'siblings': '1', 'model': '2',
'arch': 'IA-64', 'processor': '0', 'cpu MHz': '1500.000000', 'revision':
'1'}

HTH,

Arnd




More information about the Scipy-dev mailing list