标题: linux compiler flags=对应的gfortran flags是什么 [打印本页] 作者: xyzxhyzl 时间: 2020-8-9 16:53 标题: linux compiler flags=对应的gfortran flags是什么 例如ifort 知道是Intel Pgi对应的是PG,网上大多讨论的是ifort,但讨论gfortran编译器几乎没有。别人工科生需要在linux上编译一个并行程序,求轻喷。下面是引用的原文。
./Install -single -fastio -linux_compiler_flags=Intel(这里改成gfortran的flags) -cgnsdir=/home/ubuntu/CFL3D/external/cgns/lib
引用
to chose the proper compiler FLAGS Linux
machines; the compiler will be named with
the generic name mpif77...you must either
explicitly change the name in the
makefile that is generated via the
Install command or make sure that mpif77
points to the correct compiler on your
system. NOTE: the default is Intel, i.e
if you use the Intel ifc compiler on your
Linux machine, you do not need to specify
this option; if your default compiler is
the Portland Group pgf90 compiler, then
you should use -linux_compiler_flags=PG)