Fortran Coder

查看: 12654|回复: 9
打印 上一主题 下一主题

[讨论] 关于forall 和 where

[复制链接]

69

帖子

7

主题

0

精华

专家

F 币
320 元
贡献
224 点
楼主
发表于 2015-8-21 12:18:14 | 显示全部楼层
在新的Fortran2015标准中,forall已经被列为obsolescent特性,

The FORALL construct and statement were added to the language in the expectation that they would enable
highly efficient execution, especially on parallel processors. However, experience indicates that they are too
complex and have too many restrictions for compilers to take advantage of them. They are redundant with the
DO CONCURRENT construct, and many of the manipulations for which they might be used can be done more
effectively using pointers, especially using pointer rank remapping.


所以还是不用的好。

69

帖子

7

主题

0

精华

专家

F 币
320 元
贡献
224 点
沙发
发表于 2015-8-21 19:32:15 | 显示全部楼层
wx_G5fH8Rhq 发表于 2015-8-21 17:19
看起来像是编译器原因。。。
哥们儿你这个 标准文档在哪儿整的 我也想看·· ...

http://j3-fortran.org/doc/year/15/15-007r1.pdf

评分

参与人数 1贡献 +9 收起 理由
vvt + 9

查看全部评分

69

帖子

7

主题

0

精华

专家

F 币
320 元
贡献
224 点
板凳
发表于 2015-8-21 20:01:58 | 显示全部楼层
本帖最后由 jason388 于 2015-8-21 20:03 编辑
wx_G5fH8Rhq 发表于 2015-8-21 17:21
还有 where 没有被列入废弃特性吧?

没有where。较新的特性就只有forall命运不好。
您需要登录后才可以回帖 登录 | 极速注册

本版积分规则

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

GMT+8, 2024-6-15 03:59

Powered by Tencent X3.4

© 2013-2024 Tencent

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