Can I use ATLAS for the blas/lapack library

Thierry Thomas thierry at pompo.net
Sat Jan 13 01:18:32 CST 2007


Le Sam 13 jan 07 à  2:45:29 +0100, Ben Tay <zonexo at gmail.com>
 écrivait :
> Hi,

Hello,

> 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.




More information about the petsc-users mailing list