xyzxhyzl 发表于 2020-8-9 16:53:38

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)


li913 发表于 2020-8-9 18:41:19

这不是编译器参数,而是用于指定编译器。试试直接写 gfortran

xyzxhyzl 发表于 2020-8-9 20:07:02

li913 发表于 2020-8-9 18:41
这不是编译器参数,而是用于指定编译器。试试直接写 gfortran

谢谢回复,我试一下
页: [1]
查看完整版本: linux compiler flags=对应的gfortran flags是什么