Thursday, August 25, 2022

Compilation options

 Another reminder for myself. Compilation options for Intel Fortran and gfortran:

Intel Fortran:

Optimization-O3 

Debug-g -traceback -check all -fpe0 -check noarg_temp_created

(see here (in English) and here (in French) for meaning)

the option -o tells the name of the produced executable

i.e. the command is something like ifort -O3 myprog.f90 -o myprog

I often use also -heap-arrays  to avoid using unlimit to manipulate the stack size: see  here 

gfortran:

Optimization-O3 

Debug -g -Wall -fbounds-check -fbacktrace -ffpe-trap=invalid,zero,overflow

Detailed explanations here and here (page 24-27)

I often use the option -ffree-line-length-none to allow for lines of any length


No comments:

Post a Comment