[Numpy-tickets] [NumPy] #653: v1.0.4 incorrectly identifies Xeon as 64-bit

NumPy numpy-tickets@scipy....
Mon Feb 4 09:12:01 CST 2008


#653: v1.0.4 incorrectly identifies Xeon as 64-bit
-----------------------------+----------------------------------------------
 Reporter:  doneal24         |       Owner:  cookedm
     Type:  defect           |      Status:  new    
 Priority:  normal           |   Milestone:  1.0.5  
Component:  numpy.distutils  |     Version:  none   
 Severity:  normal           |    Keywords:         
-----------------------------+----------------------------------------------
 Platform Gentoo Linux on Intel Xeon, 32-bit


 {{{
 biowolf # cat /proc/cpuinfo
 processor       : 0
 vendor_id       : GenuineIntel
 cpu family      : 15
 model           : 2
 model name      : Intel(R) Xeon(TM) CPU 2.80GHz
 stepping        : 9
 cpu MHz         : 2799.930
 cache size      : 512 KB
 physical id     : 0
 siblings        : 2
 core id         : 0
 cpu cores       : 1
 fdiv_bug        : no
 hlt_bug         : no
 f00f_bug        : no
 coma_bug        : no
 fpu             : yes
 fpu_exception   : yes
 cpuid level     : 2
 wp              : yes
 flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
 cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
 bogomips        : 5572.09
 clflush size    : 64
 biowolf # python
 Python 2.4.4 (#1, Jan 15 2008, 12:27:23)
 [GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> from numpy.distutils.cpuinfo import cpu
 >>> cpu.is_64bit()
 True
 >>>
 }}}


 Commenting out lines 282-283 in /usr/lib/python2.4/site-
 packages/numpy/distutils/cpuinfo.py
 {{{
 #if self.info[0].get('clflush size','')=='64':
 #   return True
 }}}
 will then correctly return the system type as 32bit but this is not the
 optimal solution.

 Incorrect identification of the system as 64-bit causes scipy to fail in
 many modules.

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/653>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list