On Mon, May 29, 2023, at 17:02, timesir wrote:
> Dear community,
>
> I want to find the location of the openblas library that Numpy calls. 

Hi,

I suspect you're tied to Python 3.6 due to some HPC cluster or similar, but in 
case you can upgrade to Python 3.8 or newer, NumPy 1.24 introduced 
show_runtime() that contains this information: 
https://numpy.org/doc/stable//reference/generated/numpy.show_runtime.html .
It's possible that installing `threadpoolctl` and running `python -m 
threadpoolctl -i numpy` works on older Python/NumPy as well to tell you the 
same information, I don't know.

AndrĂ¡s

> Then I did the following:
>
> [root@computer02 ~]#  python3
> Python 3.6.8 (default, Nov 16 2020, 16:55:22)
> [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import numpy
>>>> numpy.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)]
>
> However, the ls /usr/local/lib folder is empty and I would like to know 
> how to see where openblas used by numpy is?
>
>
> _______________________________________________
> NumPy-Discussion mailing list -- numpy-discussion@python.org
> To unsubscribe send an email to numpy-discussion-le...@python.org
> https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
> Member address: deak.and...@gmail.com
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to