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 | ||
| dune [2010/11/10 14:47] – gerard | dune [2017/08/25 07:56] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | |||
| + | ====== recompilation de solver-bench sur judith (CentOS7) ====== | ||
| + | dune sur judith, ne pas oublier: | ||
| + | < | ||
| + | [root@judith ~]# yum groupinstall ' | ||
| + | </ | ||
| + | * dans / | ||
| + | * dernière version du solver-bench: | ||
| + | * a besoin de : (voir config.log) | ||
| + | < | ||
| + | --with-umfpack=/ | ||
| + | --with-petsc=/ | ||
| + | --with-dune-istl=/ | ||
| + | --with-slepc=/ | ||
| + | </ | ||
| + | si on essaie de recompiler UMFPACK en utilisant le script de RK: ./ | ||
| + | < | ||
| + | ./ | ||
| + | </ | ||
| + | et: | ||
| + | < | ||
| + | [root@judith ~]# yum provides " | ||
| + | compat-libgfortran-41-4.1.2-44.el7.i686 : Compatibility Fortran 95 runtime | ||
| + | : library version 4.1.2 | ||
| + | Repo : base | ||
| + | Matched from: | ||
| + | Filename | ||
| + | </ | ||
| + | on installe cette lib: | ||
| + | < | ||
| + | [root@judith ~]# yum install compat-libgfortran-41-4.1.2-44.el7 | ||
| + | </ | ||
| + | et on lance l' | ||
| + | \\ | ||
| + | autre erreur, le do_work.sh ne passe pas à cause du compilo fortran qui n' | ||
| + | et ça passe: | ||
| + | < | ||
| + | Found the following Dune-components: | ||
| + | |||
| + | ---------------------------------------- | ||
| + | |||
| + | dune-common.............: | ||
| + | dune-istl...............: | ||
| + | BLAS....................: | ||
| + | METIS...................: | ||
| + | MPI.....................: | ||
| + | PETSC...................: | ||
| + | ParMETIS................: | ||
| + | SLEPC...................: | ||
| + | SuperLU-DIST............: | ||
| + | SuperLU.................: | ||
| + | UMFPACK.................: | ||
| + | </ | ||
| + | |||
| + | ensuite, on lance le make | ||
| + | \\ | ||
| + | autre erreur: | ||
| + | < | ||
| + | / | ||
| + | | ||
| + | ^ | ||
| + | In file included from / | ||
| + | from / | ||
| + | from umfpack.hh: | ||
| + | from mymatrix.hh: | ||
| + | from benchmarkruntime.cc: | ||
| + | / | ||
| + | | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | ça passe, mais il y a un autre problème à l' | ||
| + | |||
| + | on essaie de recompiler petsc, et RK a fourni le script | ||
| + | install_petsc_slepc.sh avec all comme argument | ||
| + | ça passe toujours pas, on essaie autrement (voir wiki) | ||
| + | < | ||
| + | bash-4.2$ export PETSC_DIR=$PWD | ||
| + | bash-4.2$ ./ | ||
| + | ... | ||
| + | Compilers: | ||
| + | C Compiler: | ||
| + | Fortran Compiler: | ||
| + | Linkers: | ||
| + | Static linker: | ||
| + | Dynamic 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 | ||
| + | </ | ||
| + | il faut aussi ajouter la lib mpi et | ||
| + | Different compiler and linker combinations require different flags. -R works for many GNU compiler and linker combinations, | ||
| + | dans LD_FLAGS dans do_work.sh | ||
| + | pour compiler solver-bench, | ||
| + | < | ||
| + | libtool: link: gfortran -g -O2 -Wl,-rpath -Wl,/ | ||
| + | gfortran: error: unrecognized command line option ' | ||
| + | make[2]: *** [fortrantest] Error 1 | ||
| + | make[2]: Leaving directory `/ | ||
| + | </ | ||
| + | il faut aller dans le Makefile du dossier examples/ et virer --tag=CXX des lignes LD...., avec la nouvelle verson du compilo gfortran ça passe sans problème | ||
| + | |||
| + | on vérifie sur un des benches: | ||
| + | < | ||
| + | --------------------------------------------------------- | ||
| + | RESULTS for `LS-FVM_test1_dkershaw16.xdr' | ||
| + | --------------------------------------------------------- | ||
| + | Contributor and scheme: LS-FVM | ||
| + | Test: 1 | ||
| + | Mesh: dkershaw16 | ||
| + | --------------------------------------------------------- | ||
| + | Problem size: | ||
| + | 1) unknowns: | ||
| + | 2) non-zero Matrix entries: | ||
| + | 3) entries in blocks of size: 1 | ||
| + | Solver + Preconditioner: | ||
| + | Reduction to achieve: 1e-10 | ||
| + | Number of iterations: 409601 | ||
| + | Residual : || b - Ax ||_inf | ||
| + | rel. Res.: || b - Ax ||_inf / || b ||_inf | ||
| + | Computed eigenvalues values: lambda_max = -11.2098, lambda_min = -0.00820027 | ||
| + | Estimated condition number: | ||
| + | CPU time to solve in seconds: 101.545 | ||
| + | Memory used in MB: 4.74609 (program internal) | ||
| + | Memory used in MB: 7.9375 (rusage.ru_maxrss) | ||
| + | --------------------------------------------------------- | ||
| + | </ | ||
| + | à comparer avec [[http:// | ||
| + | | CPU time to solve in seconds| 369.315 | 101.545 | | ||
| ====== installation sur octopus ====== | ====== installation sur octopus ====== | ||
| Ligne 15: | Ligne 158: | ||
| ====== installer une nouvelle version de solver-bench ====== | ====== installer une nouvelle version de solver-bench ====== | ||
| + | * dans ''/ | ||
| * déplacer l' | * déplacer l' | ||
| * récuperer le fichier do_work.sh | * récuperer le fichier do_work.sh | ||
| Ligne 126: | Ligne 270: | ||
| ===== nouvelle version de solver-bench (0.45) plus slepc ===== | ===== nouvelle version de solver-bench (0.45) plus slepc ===== | ||
| - | < | + | < |
| < | < | ||
| Ligne 136: | Ligne 280: | ||
| bash-3.2$ export PETSC_ARCH=linux-gnu-c-debug | bash-3.2$ export PETSC_ARCH=linux-gnu-c-debug | ||
| bash-3.2$ export SLEPC_DIR=/ | bash-3.2$ export SLEPC_DIR=/ | ||
| + | bash-4.2$ cd ../ | ||
| bash-3.2$ ./ | bash-3.2$ ./ | ||
| bash-3.2$ make | bash-3.2$ make | ||