Hi all,
Today, I would like to share with you the way to install all libraries we need for TELEMAC by installing PETSC. The lastest version is 3.7.5. The website is here:
www.mcs.anl.gov/petsc/download/
When you compile this source code, at the configuration stage you could include MPICH, METIS, PARMETIS, HDF5, NUMPS, NETCDF... in your command. For example I do like this:
cd petsc-3.7.5
/home/huyquangtran/petsc-3.7.5/config/configure.py --prefix=/home/huyquangtran/pest_build --with-cc=gcc --with-fc=gfortran --download-mpich --download-fftw --download-hdf5 --download-fblaslapack --download-chaco --download-exodusii --download-hypre --download-metis --download-ml --download-mumps --download-netcdf --download-parmetis --download-scalapack --download-suitesparse --download-superlu --download-superlu_dist --download-triangle
Then these programs are automatically compiled and installed. You just wait and follow the instruction.
By doing this, you can save a lot of time, and you don't have to worry about some conflict issues as all libraries are set in one compiler, wrapper...
The interesting thing about PETSC is that You can test your parallel configuration at the end of installation and compare the speed with each option. For example this is my test on my HPC:
Triad: 31593.6435 Rate (MB/s)
np speedup
1 1.0
2 1.04
3 1.55
4 1.83
5 2.41
6 2.14
7 2.15
8 2.51
9 2.73
10 2.73
11 2.81
12 2.96
13 3.04
14 3.41
15 2.89
16 3.3
Estimation of possible speedup of MPI programs based on Streams benchmark.
It appears you have 1 node(s)
More information about PETSC installation you also can find here:
damask.mpie.de/Installation/PETSc
Hope this is useful for many.
Regards
Huy