Saturday 1 March 2008

Trilinos

Trilinos is a comprehensive set of libraries and solvers for parallel computation. The installation and configuration of Trilinos is not possible to cover here. On Trilinos website you will find adequate explanations as to how to install the packages. It makes sense, for other Trilinos users trying to install it under Mac OS X 10.5.2, to report here my configuration script

../configure \
--prefix=/usr/local/trilinos/trilinos-8.0.5/MAC_MPI/build \
--enable-mpi --with-mpi-compilers \
--cache-file=config.cache \
--enable-nox-lapack \
--enable-nox-epetra \
--enable-loca-lapack \
--enable-loca-epetra \
--enable-amesos \
--enable-anasazi \
--enable-aztecoo \
--enable-ifpack \
--enable-ml \
--enable-teuchos \
--enable-teuchos-complex \
--enable-triutils \
--enable-galeri \
--disable-examples \
--disable-tests \
CFLAGS="-O3 -ftree-vectorize" \
CXXFLAGS="-O3 -ftree-vectorize" \
FFLAGS="-O3 -ftree-vectorize" \
FLIBS="-Wl,-framework -Wl,vecLib -lSystem"


I have used these compilers and this MPI implementation. On goofy, you can link against Trilinos from the directory /usr/local/trilinos/trilinos-8.0.5/MAC_MPI/build.

2 comments:

Anonymous said...

Thanks a lot for sharing the experience. As I using your lines to configure Trilinos, I kept getting the following message:

checking for Fortran 77 libraries of mpif77...
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... configure: error: cannot compile a simple Fortran program
See `config.log' for more details.
configure: error: ../../../packages/teuchos/configure failed for packages/teuchos

I have no clue on where the problem is. Could you kindly give some suggestions? Thank you in advance.

Daniele Avitabile said...

Neil,

do you have any fortran program installed at all? Check the following post to install a fortran compiler.

http://ienmtips.blogspot.com/2008/02/auto-vectorising-c-and-fortran.html

Best.

Daniele