[Numpy-tickets] [NumPy] #438: extension modules on x86_64 fail, march is set to i686

NumPy numpy-tickets@scipy....
Sat Feb 17 03:00:25 CST 2007


#438: extension modules on x86_64 fail, march is set to i686
------------------------+---------------------------------------------------
 Reporter:  tovrstra    |        Owner:  somebody
     Type:  defect      |       Status:  new     
 Priority:  normal      |    Milestone:          
Component:  numpy.f2py  |      Version:  1.0.1   
 Severity:  minor       |   Resolution:          
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by jitter):

 It looks like this is caused by changeset 3538 (fixing the scipy ticket
 #349).

 No idea whether _is_Nocona() has intentionally been changed from P IV to
 i686 at that time, but it doesn't work for me on a Pentium 4 D (with
 x86_64 support). Additionally this breaks the fftpack/dfftpack building in
 scipy (same -march problem).

 Solutions: either revert the i686 thingy in _is_Nocona() (which would be
 my suggestion, as there isn't any i686 with 64bit support, right?) or
 apply this patch as a workaround:

 Index: numpy/distutils/cpuinfo.py
 ===================================================================
 --- numpy/distutils/cpuinfo.py  (revision 3546)
 +++ numpy/distutils/cpuinfo.py  (working copy)
 @@ -185,7 +185,7 @@
          return self.is_PentiumIV() and self.has_sse3()

      def _is_Nocona(self):
 -        return self.is_64bit() and self.is_i686()
 +        return self.is_64bit() and (self.is_i686() or
 self.is_PentiumIV())

      def _is_Core2(self):
          return self.is_64bit() and self.is_Intel() and \


 Just to help the maintainer of cpuinfo.py, here are the contents of
 /proc/cpuinfo on that machine (running SuSE 10.0, x86_64):
 processor       : 0
 vendor_id       : GenuineIntel
 cpu family      : 15
 model           : 4
 model name      :               Intel(R) Pentium(R) 4 CPU 3.00GHz
 stepping        : 3
 cpu MHz         : 2990.595
 cache size      : 2048 KB
 fpu             : yes
 fpu_exception   : yes
 cpuid level     : 5
 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 syscall nx lm
 constant_tsc pni monitor ds_cpl est cid cx16 xtpr
 bogomips        : 5989.97
 clflush size    : 64
 cache_alignment : 128
 address sizes   : 36 bits physical, 48 bits virtual
 power management:

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


More information about the Numpy-tickets mailing list