Discussion:
Can I use ATLAS for the blas/lapack library
Ben Tay
2007-01-13 01:45:29 UTC
Permalink
Hi,

I've ATLAS on my server. Can I use it for the blas/lapack library?

I tried to specify the directory and also the the library files but the
PETSc configuration keep saying it's not valid.

The library files are

libatlas.a libcblas.a libf77blas.a liblapack.a libptcblas.a
libptf77blas.a libtstatlas.a

Which one should I specify?

Lastly, have other users post any comments about using ATLAS?

Thank you!
Barry Smith
2007-01-13 03:04:30 UTC
Permalink
Ben,

Please send the configure.log to petsc-***@mcs.anl.gov
It is suppose to work with the ATLAS libraries, but they
are often temperamental.

Barry
Post by Ben Tay
Hi,
I've ATLAS on my server. Can I use it for the blas/lapack library?
I tried to specify the directory and also the the library files but the
PETSc configuration keep saying it's not valid.
The library files are
libatlas.a libcblas.a libf77blas.a liblapack.a libptcblas.a
libptf77blas.a libtstatlas.a
Which one should I specify?
Lastly, have other users post any comments about using ATLAS?
Thank you!
Satish Balay
2007-01-13 07:23:12 UTC
Permalink
You can specify with the option '--with-blas-lapack-dir=PATH' and
configure will check if it can find comaptible libraries [wrt the
compilers used with configure]

However - unless you have a specific need for it [i.e make performance
measurements for publishing] - its ok to just use regular blas/lapack.
We recommend doing all the development with a debug build of PETSc
libraries anyway.. [which is the default for configure]

Satish
Post by Barry Smith
Ben,
It is suppose to work with the ATLAS libraries, but they
are often temperamental.
Barry
Post by Ben Tay
Hi,
I've ATLAS on my server. Can I use it for the blas/lapack library?
I tried to specify the directory and also the the library files but the
PETSc configuration keep saying it's not valid.
The library files are
libatlas.a libcblas.a libf77blas.a liblapack.a libptcblas.a
libptf77blas.a libtstatlas.a
Which one should I specify?
Lastly, have other users post any comments about using ATLAS?
Thank you!
Thierry Thomas
2007-01-13 07:18:32 UTC
Permalink
Post by Ben Tay
Hi,
Hello,
Post by Ben Tay
I've ATLAS on my server. Can I use it for the blas/lapack library?
I tried to specify the directory and also the the library files but the
PETSc configuration keep saying it's not valid.
Yes, you can! Here is an extract of the FreeBSD port's Makefile:

.if defined(WITH_ATLAS)
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
LIBBLASLAPACK= "-L${LOCALBASE}/lib -lalapack -lf77blas -latlas -lm"
.else
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
LIBBLASLAPACK= "-L${LOCALBASE}/lib -llapack -lblas -lm"
.endif
CONFIGURE_ARGS+= --with-blas-lapack-lib=${LIBBLASLAPACK}

Regards,
--
Th. Thomas.
Loading...