Welcome, Guest
Username: Password: Remember me

TOPIC: step-by-step guide to install Telemac v7p1 on Ubuntu 16.04 in parallel

step-by-step guide to install Telemac v7p1 on Ubuntu 16.04 in parallel 7 years 10 months ago #24692

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Using -DHAVE_MPICH will not work it will compile but the code will not work in parallel.

-DHAVE_MPI means that we enable part of the source code that contains call to mpi function.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: huyquangtran

step-by-step guide to install Telemac v7p1 on Ubuntu 16.04 in parallel 7 years 10 months ago #24697

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
so it should be a problem for me to deal with (but on V7p2), including "Parmetis Support" in another post.


Best Regards

Huy
The administrator has disabled public write access.

step-by-step guide to install Telemac v7p1 on Ubuntu 16.04 in parallel 7 years 10 months ago #24698

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
-DHAVE_MPI works with both mpich and openmpi
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: huyquangtran

step-by-step guide to install Telemac v7p1 on Ubuntu 16.04 in parallel 7 years 10 months ago #24699

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Thanks.

As many new features I would like to test on V7p2, I would like to see if you have successfully compiled this version on Linux (e.g Mint) and Windows.

Could you share with me an example of successful parallel configuration V7p2?

Best Regards
Huy
The administrator has disabled public write access.

step-by-step guide to install Telemac v7p1 on Ubuntu 16.04 in parallel 7 years 10 months ago #24700

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
You can check in configs/systel.edf.cfg C9.gfortran.dyn and winHPC both worked. They are using environment variable for external libraries.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: huyquangtran

step-by-step guide to install Telemac v7p1 on Ubuntu 16.04 in parallel 7 years 10 months ago #24702

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Thanks.

I see this file for V7.2, and I will try to adapt it.

By the way, could you explain a bit about "using environment variable for external libraries"?

Best Regards
Huy
The administrator has disabled public write access.

step-by-step guide to install Telemac v7p1 on Ubuntu 16.04 in parallel 7 years 10 months ago #24703

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
All the path for med, metis, hdf5, mumps I use in the systel.edf.cfg.
Are referenced via $MEDHOME and so on.

To see how they are defined you can have a look at configs/pysource.template.sh
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: huyquangtran

step-by-step guide to install Telemac v7p1 on Ubuntu 16.04 in parallel 7 years 10 months ago #24704

  • dzung.tum
  • dzung.tum's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
Dear Tran,

the keyword "DHAVE_MPI" is actually a compilation directive which tells gfortran to compile Telemac code with MPI supported and therefore produce the according binary file executable in the parallel mode. If you neglect the key word, MPI statements embedded in the Telemac code will be ignored by the compiler, i.e gfortran. As the result the final binary can only run in the scalar mode.
A point to be clear is that "DHAVE_MPI" is not a buitl-in instruction of gfortran, but a compiler switch added by the authors. That may answer why we could not find explanations about "DHAVE_MPI" in the manual of gfortran. I would recommend you to search for "DHAVE_MPI" using grep in the source folder as in the following command:
$ grep -rnw 'OpenTelemac/v6p3r2/sources' -e "DHAVE_MPI"
See ya,
Dzung
The administrator has disabled public write access.
The following user(s) said Thank You: huyquangtran

step-by-step guide to install Telemac v7p1 on Ubuntu 16.04 in parallel 7 years 9 months ago #24948

  • REYES.CASTILLO
  • REYES.CASTILLO's Avatar
I have error¡¡

_____ __ __
|___ | /_ | /_ |
__ __ _/ / _ __ | | _ __ | |
\ \ / / |_ _| | '_ \ | || '__| | |
\ V / / / | |_) | | || | | |
\_/ /_/ | .__/ |_||_| |_|
| |
|_|
_ _ ___ ___ _____ _ _
_| || |_ / _ \ / _ \ | ____|| || |
_ __ ___ __ __ |_ __ _|| (_) || | | || |__ | || |_
| '__| / _ \\ \ / / _| || |_ \__, || | | ||___ \ |__ _|
| | | __/ \ V / _ |_ __ _| / / | |_| | ___) | | |
|_| \___| \_/ (_) |_||_| /_/ \___/ |____/ |_|


... parsing configuration file: /home/mishel/telemac/v7p1/configs/systel.ubuntu.cfg


_ __ _ _
| | / _| (_) | |
_ _ | |__ _ _ __ _ | |_ _ __ ___ _ __ _ ___ | |__
| | | || '_ \ | | | | / _` || _|| '_ ` _ \ | '_ \ | | / __|| '_ \
| |_| || |_) || |_| || (_| || | | | | | | || |_) || || (__ | | | |
\__,_||_.__/ \__,_| \__, ||_| |_| |_| |_|| .__/ |_| \___||_| |_|
__/ | | |
|___/ |_|
Scanning the source code for:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+> configuration: ubugfmpich
+> parallel mode, using mpiexec directly (of the MPICH2 package).
| The only difference with the scalar versions (optimised) is the presence
| of the key mpi_cmdexec and the -DHAVE_MPI compilation directive.
| Of course, you also need the key par_cmdexec.
| Finally, note that this configuration also works whether
| processor is 0 or 1.
+> root: /home/mishel/telemac/v7p1
Traceback (most recent call last):
File "/home/mishel/telemac/v7p1/scripts/python27/compileTELEMAC.py", line 567, in <module>
print ' +> modules: ' + cfgs[cfgname] + '\n\n'+'~'*72+'\n'
KeyError: 'modules'


give a solution¡¡
The administrator has disabled public write access.

step-by-step guide to install Telemac v7p1 on Ubuntu 16.04 in parallel 7 years 9 months ago #24949

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Could you post this file "/home/mishel/telemac/v7p1/configs/systel.ubuntu.cfg" ?
And the command you ran.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
Moderators: borisb

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