203. Use ifort -fast or gfortran -O3 -march=native for speed.#
topic: Compiling
Note
This tip is a draft1.
Use the ifort -fast and gfortran -O3 -march=native options to increase speed. Gfortran -Ofast turns on -ffast-math and can give a further 2x speedup in some cases, but it can also give incorrect results and should be used with care. Use gfortran -Og to debug.
Use the ifort -fast and gfortran -O3 -march=native options to increase speed. Gfortran -Ofast turns on -ffast-math and can give a further 2x speedup in some cases, but it can also give incorrect results and should be used with care. Use gfortran -Og to debug.
— FortranTip (@fortrantip) April 28, 2022
- 1
From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.