[Numpy-discussion] building NumPy with Intel CC & MKL
rex at nosyntax.com
Wed Jan 24 00:59:55 EST 2007
I'm trying to build NumPy on an SUSE 10.2 Core 2 Duo system using the
Intel compiler and Math Kernel Library, and Python 2.5
I want to see how much faster it is than the SUSE NumPy 1.0.1 rpm that
recently became available (huge thanks to whomever it was that created
it. Installing NumPy and SciPy has been a lot of work on SUSE systems in the
past. Half the time I'd give up in frustration after hours of work with
each new distribution, and wait until the next SUSE release and try
I followed the instructions that are here:
Any distribution with Intel C compiler and MKL
I changed the line:
cc_exe = 'icc -O2 -g -fomit-frame-pointer -mcpu=pentium4 -mtune=pentium4 -march=pentium4 -msse2 -axWN -Wall'
cc_exe = 'icc -O2 -g -fomit-frame-pointer -mcpu=pentium4 -mtune=pentium4 -march=pentium4 -msse3 -xP -Wall'
But the NumPy compile failed:
c2d0:/usr/local/src/numpy-1.0.1 # python setup.py config --compiler=intel build_clib --compiler=intel build_ext --compiler=intel install
Running from numpy source directory.
Traceback (most recent call last):
File "setup.py", line 89, in <module>
File "setup.py", line 59, in setup_package
from numpy.distutils.core import setup
File "/usr/local/src/numpy-1.0.1/numpy/distutils/core.py", line 24, in <module>
from numpy.distutils.command import build_ext
File "/usr/local/src/numpy-1.0.1/numpy/distutils/command/build_ext.py", line 16, in <module>
from numpy.distutils.system_info import combine_paths
File "/usr/local/src/numpy-1.0.1/numpy/distutils/system_info.py", line 159, in <module>
so_ext = distutils.sysconfig.get_config_vars('SO') or ''
File "/usr/lib/python2.5/distutils/sysconfig.py", line 493, in get_config_vars
File "/usr/lib/python2.5/distutils/sysconfig.py", line 352, in _init_posix
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/lib/python2.5/config/Makefile (No such file or directory)
There is no config directory in /usr/lib/python2.5/
These are the subdirectories:
The only Makefiles under Python2.5 are:
Help anyone? I hope I don't have to build Python2.5 from source to build NumPy.
More information about the NumPy-Discussion