[Numpy-discussion] Numpy & MKL

David Warde-Farley dwf@cs.toronto....
Thu Jan 7 20:13:45 CST 2010


On 7-Jan-10, at 8:13 PM, Xue (Sue) Yang wrote:

> This is what I had (when I built numpy, I chose gnu compilers  
> instead of
> intel compilers),
>
>>>> numpy.show_config()
> lapack_opt_info:
>    libraries = ['mkl_lapack', 'mkl', 'vml', 'guide', 'pthread']
>    library_dirs = ['/usr/physics/intel/mkl/lib/32']
>    define_macros = [('SCIPY_MKL_H', None)]
>    include_dirs = ['/usr/physics/intel/mkl/include']
>
> blas_opt_info:
>    libraries = ['mkl', 'vml', 'guide', 'pthread']
>    library_dirs = ['/usr/physics/intel/mkl/lib/32']
>    define_macros = [('SCIPY_MKL_H', None)]
>    include_dirs = ['/usr/physics/intel/mkl/include']
>
> lapack_mkl_info:
>    libraries = ['mkl_lapack', 'mkl', 'vml', 'guide', 'pthread']
>    library_dirs = ['/usr/physics/intel/mkl/lib/32']
>    define_macros = [('SCIPY_MKL_H', None)]
>    include_dirs = ['/usr/physics/intel/mkl/include']
>
> blas_mkl_info:
>    libraries = ['mkl', 'vml', 'guide', 'pthread']
>    library_dirs = ['/usr/physics/intel/mkl/lib/32']
>    define_macros = [('SCIPY_MKL_H', None)]
>    include_dirs = ['/usr/physics/intel/mkl/include']
>
> mkl_info:
>    libraries = ['mkl', 'vml', 'guide', 'pthread']
>    library_dirs = ['/usr/physics/intel/mkl/lib/32']
>    define_macros = [('SCIPY_MKL_H', None)]
>    include_dirs = ['/usr/physics/intel/mkl/include']

That looks right to me... And you're sure you've set the environment  
variable before Python is run and NumPy is loaded?

Try running:
	import os; print os.environ['OMP_NUM_THREADS']

and verify it's the right number.

David


More information about the NumPy-Discussion mailing list