Welcome, Guest
Username: Password: Remember me

TOPIC: Libraries for TELEMAC: All programs in one Installation!

Libraries for TELEMAC: All programs in one Installation! 7 years 8 months ago #25714

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
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
The administrator has disabled public write access.
The following user(s) said Thank You: qilong

Libraries for TELEMAC: All programs in one Installation! 7 years 8 months ago #25716

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

This is a very good approach -- we will most probably investigate and adapt our way of testing / compiling / validating the system as soon as we can make the time.

Of course, we are endeavouring a TELEMAC system that is extremely portable on all platforms. We will, therefore, also investigate options for other Operating Systems.

Keep up the good -- well done.

Sébastien.
The administrator has disabled public write access.

Libraries for TELEMAC: All programs in one Installation! 7 years 8 months ago #25718

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
I would prefer using this, especially on HPC cluster where I don't have admin rights. With this method, I don't have to export PATH using ./bashrc....

To prevent export PATH, another method to install programs is to produce a script. I am sure many users know this. Here is an example of a script to install HDF5, and netCDF that I found on GITHUB (this is really helpful one):

gist.github.com/perrette/cd815d03830b53e24c82

Hopefully installation TELEMAC could be easier in the near future by introducing scripts like this :P

Thanks & Regards
Huy
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.