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/07/28 10:06] – 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 66: | Ligne 72: | ||
</ | </ | ||
+ | ===== avec umfpack ===== | ||
+ | * ajouter umfpack avec le script fourni par R.K. : [[umfpack_installer.sh]] | ||
+ | * umfpack s' | ||
+ | * on recompile dune et le module solver-bench avec umfpack | ||
+ | * on vérifie que c'est pris en compte: | ||
+ | < | ||
+ | [henry@octopus src]$ ./ | ||
+ | Residual: euclidian = 2.43625e-17 | ||
+ | nR = 93 nC = 93 nZ = 1467 | ||
+ | Rows offset is 0 | ||
+ | Overall time for UMFPACK solve: 0.001 | ||
+ | UMFPACK: | ||
+ | Solution needed 0 seconds. | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== petsc ====== | ||
+ | < | ||
+ | [devel1@octopus petsc-3.1-p4]$ export PETSC_DIR=$PWD | ||
+ | [devel1@octopus petsc-3.1-p4]$ ./ | ||
+ | ... | ||
+ | Compilers: | ||
+ | C Compiler: | ||
+ | Fortran Compiler: | ||
+ | Linkers: | ||
+ | Static linker: | ||
+ | X11: | ||
+ | Includes: | ||
+ | Library: | ||
+ | BLAS/ | ||
+ | PETSc: | ||
+ | PETSC_ARCH: linux-gnu-c-debug | ||
+ | PETSC_DIR: / | ||
+ | Clanguage: C | ||
+ | Scalar type: real | ||
+ | Precision: double | ||
+ | Memory alignment: 16 | ||
+ | shared libraries: disabled | ||
+ | dynamic libraries: disabled | ||
+ | xxx=========================================================================xxx | ||
+ | | ||
+ | make PETSC_DIR=/ | ||
+ | xxx=========================================================================xxx | ||
+ | [devel1@octopus petsc-3.1-p4]$ | ||
+ | |||
+ | [devel1@octopus petsc-3.1-p4]$ make PETSC_DIR=/ | ||
+ | Running test examples to verify correct installation | ||
+ | C/C++ example src/ | ||
+ | Fortran example src/ | ||
+ | Completed test examples | ||
+ | | ||
+ | </ | ||
+ | |||
+ | ===== 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/ | ||
+ | |||
+ | </ |