Re: [petsc-dev] petsc4py, numpy's BLAS and PETSc's BLAS

2022-10-24 Thread Barry Smith
I've never found a likable version of BLAS/LAPACK, just versions I could live with :-) > On Oct 24, 2022, at 12:31 PM, Satish Balay wrote: > > Yes - this always bothered me... > > But I don't think its always possible to automate it. > > The likable version [.so] might not exist -

Re: [petsc-dev] petsc4py, numpy's BLAS and PETSc's BLAS

2022-10-24 Thread Satish Balay via petsc-dev
Hm - I see numpy on older OS - but not on M1. So Apple no longer bundles it? And pip creates grief on NFS :( Satish -- balay@ypro ~ % sw_vers ProductName:Mac OS X ProductVersion: 10.15.7 BuildVersion: 19H2026 balay@ypro ~ % python3 -c "import numpy; print(numpy.__file__)"

Re: [petsc-dev] petsc4py, numpy's BLAS and PETSc's BLAS

2022-10-24 Thread Satish Balay via petsc-dev
Yes - this always bothered me... But I don't think its always possible to automate it. The likable version [.so] might not exist - only .so.ver might exist? [and it might use blas but not lapack?] Note: one way to avoid this issue is to let spack install python,numpy,petsc,petsc4py Satish

Re: [petsc-dev] petsc4py, numpy's BLAS and PETSc's BLAS

2022-10-24 Thread Zhang, Hong via petsc-dev
The chances of these problems are very slim because almost nobody builds Numpy from source. I usually install it with pip. Pip-installed Numpy on Mac uses Openblas, which is shipped together with the numpy wheels. The official API to check which BLAS is used by Numpy is numpy.show_config().