[Python] How can I link numpy to use MKL as backend?

Discussão em 'Python' iniciado por Stack, Abril 12, 2025.

  1. Stack

    Stack Membro Participativo

    I have a numpy install and it shows no BLAS backend available:

    (pyrepoux) bash-4.2$ python
    Python 3.7.3 | packaged by conda-forge | (default, Dec 6 2019, 08:54:18)
    [GCC 7.3.0] :: Anaconda, Inc. on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import numpy as np
    >>> np.show_config()
    blas_mkl_info:
    NOT AVAILABLE
    blis_info:
    NOT AVAILABLE
    openblas_info:
    libraries = ['openblas', 'openblas']
    library_dirs = ['/usr/local/lib']
    language = c
    define_macros = [('HAVE_CBLAS', None)]
    blas_opt_info:
    libraries = ['openblas', 'openblas']
    library_dirs = ['/usr/local/lib']
    language = c
    define_macros = [('HAVE_CBLAS', None)]
    lapack_mkl_info:
    NOT AVAILABLE
    openblas_lapack_info:
    libraries = ['openblas', 'openblas']
    library_dirs = ['/usr/local/lib']
    language = c
    define_macros = [('HAVE_CBLAS', None)]
    lapack_opt_info:
    libraries = ['openblas', 'openblas']
    library_dirs = ['/usr/local/lib']
    language = c
    define_macros = [('HAVE_CBLAS', None)]


    I can do pip install mkl but still the same output as above. How can I link numpy to use MKL as BLAS / LAPACK backend?

    Continue reading...

Compartilhe esta Página