Hi,
I’m trying to use the gfortran to compile a Makefile. However, the flag options are set for ifort compiler, yet the Makefile could be compiled with gfortran . Now I need to configure the flag options to match the gfortran . I couldn’t find the equivalents of some ifort options in gfortran . Could anyone help me in configuring the flag options? The ifort flag options are:
-fixed
-check
-fp-stack-check
-132
Thank you for any help in advance.
Reza,
1 Like
Hi @RezaRezaei ,
this link can be useful:
I am trying to compile a code using gfortran instead of ifortran. The gfortran code runs much much slower than the ifortran code. It does not even use all threads from my computer. I have 40 cores and 80 threads. ifort uses all of them.I think it has to do with the ifort flag /Qm64 but can’t be sure (using the /Qm32 flag on ifort is slower and does not use all the threads on openmp - not sure why).
This is the way that visual studio seems to be compiling my code:
Compiling with Intel® Fortran…
you could also try fpm to build your program
https://fpm.fortran-lang.org/en/index.html
1 Like
Thank you for responding. Unfortunately, I couldn’t find the mentioned option in the links.
you could also compare these two lists of compile options
gfortran ifort
example:
-fixed → Specifies source files are in fixed format. ifort
-ffixed-form → Specify the layout used by the source file. gfortran
Is there a an overview of commonly used options for commonly used compilers somewhere? Might be a worthwhile community project.
2 Likes
@Sideboard
I couldn’t find such a document.
Maybe, a quick reference card that lists the common options between compilers.
1 Like
Here is a link that people may find useful.
https://polyhedron.com/?page_id=175