Welcome, Guest
Username: Password: Remember me

TOPIC: How to compile Telemac using Intel Compiler and Intel MPI in Linux!

How to compile Telemac using Intel Compiler and Intel MPI in Linux! 8 years 2 months ago #23743

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

I am trying to compile Telemac with Intel compiler(version 16.0) and Intel MPI (version 5.1). And I get stuck in translating the following compilation commands to support Intel, i.e using ifort and mpiifort instead of gfortran and mpifort.


#===================================================================
# excerpted from systel.cfg

cmd_obj: gfortran -c -O3 -DHAVE_MPI -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: mpifort -fconvert=big-endian -frecord-marker=4 -v -lm -lz -o <exename> <objs> <libs>

#===================================================================

I would like to hear advice from you. Thank you very much!

--
Dzung Nguyen
TUM
The administrator has disabled public write access.

How to compile Telemac using Intel Compiler and Intel MPI in Linux! 8 years 2 months ago #23745

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
In the various config file available in the installation you should find some example of Intel compiler config
Regards
Christophe
The administrator has disabled public write access.

How to compile Telemac using Intel Compiler and Intel MPI in Linux! 8 years 2 months ago #23746

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

thank you for the quick response. As you said, I found these lines in the configuration folder:

#=======================================================================
# excertped from systel.edf.cfg

cmd_obj: ifort -c -O3 -convert big_endian -no-prec-div -O3 -sox -vec-report1 -xsse4.2 -DHAVE_MPI -DHAVE_MED -DHAVE_TECPLOT -DHAVE_DREDGESIM <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: ifort -O3 -o <exename> <objs> <libs>

#=======================================================================

Is that what you meant? In addition, I am working on version 6.3 of Telemac.

Best Regards,
The administrator has disabled public write access.

How to compile Telemac using Intel Compiler and Intel MPI in Linux! 8 years 2 months ago #23747

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Yes, this is the idea.
You could adapt some fine tuning parameter if you want according to yoru computer (-xsse4.2 for example) and the preprocessing parameters (I imagine you will not use MED file format so you could delete -DHAVE_MED) ...

In my opinion, as you plan to use a recent compiler, it could be better to also upgrade the telemac version...

Regards
Christophe
The administrator has disabled public write access.

How to compile Telemac using Intel Compiler and Intel MPI in Linux! 8 years 2 months ago #23748

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

I know the existence of higher versions of Telemac, but for some reasons we still need to work with v6.3 a bit more.

Concerning the code below:
#=======================================================================
# excertped from systel.edf.cfg

cmd_obj: ifort -c -O3 -convert big_endian -no-prec-div -O3 -sox -vec-report1 -xsse4.2 -DHAVE_MPI -DHAVE_MED -DHAVE_TECPLOT -DHAVE_DREDGESIM <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: ifort -O3 -o <exename> <objs> <libs>

#=======================================================================
I guess line cmd_exe: ifort -O3 -o <exename> <objs> <libs> is not correct since ifort is not a mpi version of Intel Compiler. Am I right?

Best Regards,
The administrator has disabled public write access.

How to compile Telemac using Intel Compiler and Intel MPI in Linux! 8 years 2 months ago #23749

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
It's a little bit more complex as you should distinguish the program and its execution.
You're right, with intel, there could be some optimization in parallel so you could try to compile with mpiifort instead of ifort
If you have a little bit of time you could compare the both configuration.

Regards
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: dzung.tum
Moderators: borisb

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