Fortran Coder

查看: 4665|回复: 2
打印 上一主题 下一主题

[编译器] linux compiler flags=对应的gfortran flags是什么

[复制链接]

2

帖子

1

主题

0

精华

新人

F 币
13 元
贡献
6 点
跳转到指定楼层
楼主
发表于 2020-8-9 16:53:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
例如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)


分享到:  微信微信
收藏收藏1 点赞点赞 点踩点踩

798

帖子

2

主题

0

精华

大宗师

F 币
3793 元
贡献
2268 点
沙发
发表于 2020-8-9 18:41:19 | 只看该作者
这不是编译器参数,而是用于指定编译器。试试直接写 gfortran

2

帖子

1

主题

0

精华

新人

F 币
13 元
贡献
6 点
板凳
 楼主| 发表于 2020-8-9 20:07:02 | 只看该作者
li913 发表于 2020-8-9 18:41
这不是编译器参数,而是用于指定编译器。试试直接写 gfortran

谢谢回复,我试一下
您需要登录后才可以回帖 登录 | 极速注册

本版积分规则

捐赠本站|Archiver|关于我们 About Us|小黑屋|Fcode ( 京ICP备18005632-2号 )

GMT+8, 2024-4-27 09:05

Powered by Tencent X3.4

© 2013-2024 Tencent

快速回复 返回顶部 返回列表