Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révisionLes deux révisions suivantes | ||
dune [2010/09/22 17:13] – gerard | dune [2014/12/29 09:21] – [nouvelle version de solver-bench (0.45) plus slepc] gerard | ||
---|---|---|---|
Ligne 13: | Ligne 13: | ||
</ | </ | ||
+ | |||
+ | ====== installer une nouvelle version de solver-bench ====== | ||
+ | * dans ''/ | ||
+ | * déplacer l' | ||
+ | * récuperer le fichier do_work.sh | ||
+ | * ne pas oublier de rajouter **-lmpi** dans **LIBS** (voir ci-dessous) | ||
====== benchmark ====== | ====== benchmark ====== | ||
Ligne 120: | Ligne 126: | ||
</ | </ | ||
+ | ===== nouvelle version de solver-bench (0.45) plus slepc ===== | ||
+ | < | ||
+ | |||
+ | < | ||
+ | bash-3.2$ ./ | ||
+ | bash-3.2$ make PETSC_DIR=/ | ||
+ | bash-3.2$ make PETSC_DIR=/ | ||
+ | |||
+ | bash-3.2$ export PETSC_DIR=/ | ||
+ | bash-3.2$ export PETSC_ARCH=linux-gnu-c-debug | ||
+ | bash-3.2$ export SLEPC_DIR=/ | ||
+ | bash-4.2$ cd ../ | ||
+ | bash-3.2$ ./ | ||
+ | bash-3.2$ make | ||
+ | bash-3.2$ make test | ||
+ | Running test examples to verify correct installation | ||
+ | C/C++ example src/ | ||
+ | Fortran example src/ | ||
+ | Completed test examples | ||
+ | |||
+ | </ | ||
+ | |||
+ | après, on essaie: | ||
+ | < | ||
+ | bash-3.2$ ./ | ||
+ | |||
+ | |||
+ | but i saw in the messages that petsc and slepc weren' | ||
+ | |||
+ | Found the following Dune-components: | ||
+ | |||
+ | ---------------------------------------- | ||
+ | |||
+ | dune-common.............: | ||
+ | dune-istl...............: | ||
+ | BLAS....................: | ||
+ | METIS...................: | ||
+ | MPI.....................: | ||
+ | PETSC...................: | ||
+ | ParMETIS................: | ||
+ | SLEPC...................: | ||
+ | SuperLU-DIST............: | ||
+ | SuperLU.................: | ||
+ | UMFPACK.................: | ||
+ | |||
+ | ---------------------------------------- | ||
+ | |||
+ | See ./configure --help and config.log for reasons why a component wasn't found | ||
+ | </ | ||
+ | si on édite config.log: | ||
+ | < | ||
+ | ./configure CXX=g++ CXXFLAGS=-O3 -funroll-loops -finline-functions -DNDEBUG \ | ||
+ | --prefix=/ | ||
+ | --enable-parallel \ | ||
+ | --disable-documentation --disable-compilercheck --disable-mpiruntest \ | ||
+ | --with-umfpack=/ | ||
+ | --with-dune-common=/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | alors que pour la derneire version: | ||
+ | < | ||
+ | ./configure CXX=g++ CXXFLAGS=" | ||
+ | --prefix=/ | ||
+ | --disable-documentation --disable-compilercheck --disable-mpiruntest \ | ||
+ | --with-umfpack=/ | ||
+ | --with-petsc=/ | ||
+ | --with-dune-common=/ | ||
+ | --with-dune-istl=/ | ||
+ | CPPFLAGS=" | ||
+ | LDFLAGS=" | ||
+ | </ | ||
+ | |||
+ | et ca passe donc avec la ligne: | ||
+ | < | ||
+ | ./configure CXX=g++ CXXFLAGS=" | ||
+ | |||
+ | </ | ||
+ | ne pas oublier l' | ||
+ | |||
+ | pour rajouter slepc: | ||
+ | < | ||
+ | ./configure CXX=g++ CXXFLAGS=" | ||
+ | --prefix=/ | ||
+ | --disable-documentation --disable-compilercheck --disable-mpiruntest \ | ||
+ | --with-umfpack=/ | ||
+ | --with-petsc=/ | ||
+ | --with-dune-common=/ | ||
+ | --with-dune-istl=/ | ||
+ | --with-slepc=/ | ||
+ | --with-slepc-includedir=/ | ||
+ | --with-slepc-libdir=/ | ||
+ | CPPFLAGS=" | ||
+ | LDFLAGS=" | ||
+ | LIBS=" | ||
+ | |||
+ | ... | ||
+ | Found the following Dune-components: | ||
+ | |||
+ | ---------------------------------------- | ||
+ | |||
+ | dune-common.............: | ||
+ | dune-istl...............: | ||
+ | BLAS....................: | ||
+ | METIS...................: | ||
+ | MPI.....................: | ||
+ | PETSC...................: | ||
+ | ParMETIS................: | ||
+ | SLEPC...................: | ||
+ | SuperLU-DIST............: | ||
+ | SuperLU.................: | ||
+ | UMFPACK.................: | ||
+ | |||
+ | ---------------------------------------- | ||
+ | |||
+ | See ./configur | ||
+ | </ | ||
+ | |||
+ | <note important> | ||
+ | < | ||
+ | bash-3.2$ diff / | ||
+ | 225c225 | ||
+ | < LIBS = -L/ | ||
+ | --- | ||
+ | > LIBS = -L/ | ||
+ | |||
+ | </ |