install numpy/scipy with Intel Compilers
![](https://secure.gravatar.com/avatar/b59b0c01c48c34dc38a1c050c61f8e23.jpg?s=120&d=mm&r=g)
Hi! I try to install numpy 1.0.4 and scipy 0.6.0 with INTEL C/C++ and Fortran compilers and SCSL scientific library with python2.4.4 on Itanium with linux OS. (Altix SGI with SUSE linux) I didn't success to configure the construct of build_ext for scipy with the fortran INTEL compiler (--fcompiler=intele) * First, I set LD_LIBRARY_PATH and LD_RUN_PATH with directories which contains c/c++, fortran and SCSL libraries export LD_LIBRARY_PATH=/opt/intel/intel_cc/9.0.024/lib:/opt/intel/intel_fc/9.0.021/lib:/usr/lib Export LD_RUN_PATH=/opt/intel/intel_cc/9.0.024/lib:/opt/intel/intel_fc/9.0.021/lib:/usr/lib * I put in the file "site.cfg" : [DEFAULT] library_dirs = /usr/lib:/usr/local/lib/:/usr/local/stow/fftw-3.1.2/lib include_dirs = /usr/include:/usr/local/include:/usr/local/stow/fftw-3.1.2/include [blas] library_dirs = /usr/lib include_dirs=/usr/include blas_libs= scs [lapack] library_dirs = /usr/lib include_dirs=/usr/include lapack_libs = scs [fftw] libraries = fftw3 * Compile and install numpy with: python setup.py config --compiler=intel build_clib --compiler=intel build_ext --compiler=intel install It's Ok for numpy, it doesn'tt need fortran compiler but for scipy python setup.py -v config_cc --compiler=intele config_fc --fcompiler=intele build_clib --compiler=intele --fcompiler=intele build_ext --compiler=intele --fcompiler=intele install It's Ok for build_clib, the python script find c and fortran compiler it doesn't find fortran compiler for build_ext, first I had a warning warning: build_ext: f77_compiler=intele is not available, it was available for the construct of build_clib? ???? then warning: build_ext: extension 'scipy.fftpack._fftpack' has Fortran libraries but no Fortran linker found, using default linker for the construct of build_ext, the python script use the default fortran compiler g77 and the construct stoped with the message error: "extension 'scipy.interpolate.dfitpack' has Fortran sources but no Fortran compiler found" why --fcompiler=intele option of build_ext doesn't operate????????? I show this option of build_ext command with the python command python setup.py build_ext --help-fcompiler I set the variables F77, F90 , F77FLAGS with the intel compiler, I had the same error How can I configure the construct of build_ext for scipy with the Intel fortran compiler The solutions I found on the scipy archives didn't work Thank for your help -- Laurence Viry CRIP UJF - Projet MIRAGE ( http://mirage.imag.fr ) Laboratoire de Modélisation et Calcul - IMAG tel: 04 76 63 56 34 fax: 04 76 63 12 63 e-mail: Laurence.Viry@imag.fr
![](https://secure.gravatar.com/avatar/5c85708f2eed0869671a7d303ca55b85.jpg?s=120&d=mm&r=g)
On Nov 23, 2007, at 13:16 , Laurence Viry wrote:
Hi!
I try to install numpy 1.0.4 and scipy 0.6.0 with INTEL C/C++ and Fortran compilers and SCSL scientific library with python2.4.4 on Itanium with linux OS. (Altix SGI with SUSE linux)
I didn't success to configure the construct of build_ext for scipy with the fortran INTEL compiler (--fcompiler=intele) Thank for your help
Hi Laurence, I'm not familiar with Intel's compilers (even more, running them on Itaniums). I'm guessing that numpy.distutils isn't able to tell whether your compiler is intele or not. From numpy/distutils/fcompiler/ intel.py, the command run to find the version is $ ifort -FI -V -c dummy.f -o dummy.o where dummy.f is just a file with a dummy subroutine in it. Could you do this and give us the output? -- |>|\/|< /------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |cookedm@physics.mcmaster.ca
![](https://secure.gravatar.com/avatar/94515df1ab54473b46cae906aac0071c.jpg?s=120&d=mm&r=g)
David M. Cooke <cookedm@physics.mcmaster.ca> [2007-11-27 05:54]:
I'm guessing that numpy.distutils isn't able to tell whether your compiler is intele or not. From numpy/distutils/fcompiler/ intel.py, the command run to find the version is
$ ifort -FI -V -c dummy.f -o dummy.o
where dummy.f is just a file with a dummy subroutine in it. Could you do this and give us the output?
Hello David, No Itanium here, but this is the output of the 32-bit version. ============================================================================== $ ifort -FI -V -c foo.f -o foo.o Intel(R) Fortran Compiler for applications running on IA-32, Version 10.1 Build 20070913 Package ID: l_fc_p_10.1.008 Copyright (C) 1985-2007 Intel Corporation. All rights reserved. FOR NON-COMMERCIAL USE ONLY Intel Fortran 10.0-2024 ================================================================================ There's a distutils problem using Intel's MKL in NumPy-1.04 and NumPy SVN 4510 (and below). In MKL 9.1 & 10.0, mkl_lapack32 & mkl_lapack64 no longer exist. They were replaced by /32/mkl_lapack and /64/mkl_lapack. As a result, numpy/distutils/system_info.py needs to be changed: class lapack_mkl_info(mkl_info): def calc_info(self): mkl = get_info('mkl') if not mkl: return if sys.platform == 'win32': lapack_libs = self.get_libs('lapack_libs',['mkl_lapack']) else: #lapack_libs = self.get_libs('lapack_libs',['mkl_lapack32','mkl_lapack64']) lapack_libs = self.get_libs('lapack_libs',['mkl_lapack']) If this change is not made NumPy builds, but the MKL is not used. I reported this problem earlier on the NumPy list. -rex
![](https://secure.gravatar.com/avatar/b59b0c01c48c34dc38a1c050c61f8e23.jpg?s=120&d=mm&r=g)
D
Hi Laurence,
I'm not familiar with Intel's compilers (even more, running them on Itaniums). I'm guessing that numpy.distutils isn't able to tell whether your compiler is intele or not. From numpy/distutils/fcompiler/ intel.py, the command run to find the version is
$ ifort -FI -V -c dummy.f -o dummy.o
where dummy.f is just a file with a dummy subroutine in it. Could you do this and give us the output?
* the ouput is the following, --------------------------------- Intel(R) Fortran Itanium(R) Compiler for Itanium(R)-based applications Version 9.0 Build 20050430 Package ID: l_fc_p_9.0.021 Copyright (C) 1985-2005 Intel Corporation. All rights reserved. FOR NON-COMMERCIAL USE ONLY ---------------------------------- I observed before, it was not the same in intel.py description = 'Intel Fortran Compiler for Itanium apps' I tried to replace by : description = 'Intel(R) Fortran Itanium(R) Compiler for Itanium(R) apps' it's ok for numpy but I had stil the same error for scipy * I don't use MKL bul SCSL library, it is the optimized scientific library on our computrer, I give you the ouput of the config command blas_info: FOUND: libraries = ['scs'] library_dirs = ['/usr/lib'] language = f77 FOUND: libraries = ['scs'] library_dirs = ['/usr/lib'] define_macros = [('NO_ATLAS_INFO', 1)] language = f77 lapack_info: FOUND: libraries = ['scs'] library_dirs = ['/usr/lib'] language = f77 FOUND: libraries = ['scs', 'scs'] library_dirs = ['/usr/lib'] define_macros = [('NO_ATLAS_INFO', 1)] language = f77 Thank for your help -- Laurence Viry CRIP UJF - Projet MIRAGE ( http://mirage.imag.fr ) Laboratoire de Modélisation et Calcul - IMAG tel: 04 76 63 56 34 fax: 04 76 63 12 63 e-mail: Laurence.Viry@imag.fr
participants (3)
-
David M. Cooke
-
Laurence Viry
-
rex