[SciPy-dev] Distutils: incorrect inference of cpu type on Ubuntu Intrepid
anand.prabhakar.patil
anand.prabhakar.patil@gmail....
Thu Feb 5 12:11:00 CST 2009
Hi all,
I just installed numpy from the debian packages on a virtual machine in a
'cloud' to do some multiprocessing. The numpy version is 1.1.1, but the
problem (I think) would happen with 1.3.0.dev6034 as well.
While trying to build a package that incorporates Fortran sources, I ran
into the following:
gfortran:f77: mbgw/st_cov_fun/fst_cov_fun.f
f951: error: CPU you selected does not support x86-64 instruction set
f951: error: CPU you selected does not support x86-64 instruction set
f951: error: CPU you selected does not support x86-64 instruction set
f951: error: CPU you selected does not support x86-64 instruction set
error: Command "/usr/bin/gfortran -Wall -ffixed-form -fno-second-underscore
-fPIC -O3 -funroll-loops -march=k6-2 -mmmx -msse2 -msse -msse3
-Ibuild/src.linux-x86_64-2.5
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/python2.5 -c -c mbgw/st_cov_fun/fst_cov_fun.f -o
build/temp.linux-x86_64-2.5/mbgw/st_cov_fun/fst_cov_fun.o" failed with exit
status 1
The problem seems to be the -march=k6-2 flag, which is not right because the
chip is a 64-bit Opteron. The flag was set because the method
numpy.distutils.cpuinfo.cpu._is_AthlonK6_2 returned True:
def _is_AthlonK6_2(self):
return self._is_AMD() and self.info[0]['model'] == '2'
def _is_AMD(self):
return self.info[0]['vendor_id']=='AuthenticAMD'
which is understandable given the machine's /proc/cpuinfo, which follows...
but the chip is a 64-bit Opteron, as I said. Should I file a bug report?
Thanks,
Anand
0# cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 2
model name : Quad-Core AMD Opteron(tm) Processor 2352
stepping : 3
cpu MHz : 2109.267
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
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 mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt
pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good pni monitor cx16
lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse
3dnowprefetch osvw ibs
bogomips : 4218.52
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
[...]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-dev/attachments/20090205/736f66f7/attachment.html
More information about the Scipy-dev
mailing list