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.


Reply via email to