[petsc-users] Make PETSc not link with systemwide Atlas

Ondřej Čertík ondrej.certik at gmail.com
Sat Jun 22 14:03:36 CDT 2013


Satish,

On Thu, Jun 20, 2013 at 6:56 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> To strictly specify what you want - use --with-blas-lapack-lib
>
> i.e --with-blas-lapack-lib="-L${LAPACK}/lib -llapack -lblas"
>
> When you specify --with-blas-lapack-dir=$LAPACK/lib configure is
> guessing the library names in a perticular order.  It so happens that
> it was guessing atlas before -lblas and compiler found atlas in std
> locations [and that got picked up]

Indeed, this worked! Thanks a lot. For reference, here is the exact
configure line that I am using:

$PYTHON/bin/python ./config/configure.py --with-pic --with-clanguage=C
--with-cc=$MPI/bin/mpicc --with-mpi-compilers --with-shared-libraries
--prefix=$ARTIFACT --with-fortran=0
--with-blas-lapack-lib="-L$LAPACK/lib -llapack -lblas"

it even sets RPATH correctly:

patchelf --print-rpath opt/petsc/n5i4/lib/libpetsc.so
/home/ondrej/repos/python-hpcmp2/opt/lapack/xq2x/lib:/home/ondrej/repos/python-hpcmp2/opt/mpich/c7uq/lib

so everything works now.

Thanks,
Ondrej


More information about the petsc-users mailing list