Welcome, Guest
Username: Password: Remember me

TOPIC: cmd_obj

cmd_obj 6 years 7 months ago #29755

  • abernard
  • abernard's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 210
  • Thank you received: 45
Hi,

Just out of curiosity, in configuring my systel.cfg I can chose between :

gfortran -c -g -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>

OR

gfortran -c -O3 -fopenmp -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>

OR

gfortran -cpp -c -O2 -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>

What does it change?

Cheers,
Alexis
The administrator has disabled public write access.

cmd_obj 6 years 7 months ago #29761

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello Alexis,

Some pointers from my experience:
  1. -cpp should go only to cmd_obj_c:. It is a pre processor flag required for compiling nestor.
  2. -O3 & -O2 are optimization flags. O3 is supposed to generate faster code than O2 but at the potential expense of precision and stability. It also takes more time to compile.
  3. -g enables flags to generate code that it makes debugging easier. When using this flag, no optimizations are made and the code runs slower.
  4. -fopenmp is a flag that I have yet to find a reasonable explenation for its use in Telemac. As far as I know OpenMP deals with multithreading/shared memory but Telemac is an MPI/distributed memory application.

Best Regards,
Costas
The administrator has disabled public write access.
The following user(s) said Thank You: Htun Pyae Sone
Moderators: borisb

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