Intel 编译器向后兼容 Compaq 编译器
我的计算机上有最新版本的英特尔编译器。但是,我正在尝试运行一个旧的 Fortran 文件,该文件旨在在旧的 Compaq 编译器上运行。 USE MSIMSL、USE File.f90 以及 ALLOCATE 似乎都有问题 有
没有办法让 Intel 编译器像旧的 Compaq 编译器一样工作?
I have a recent edition of the Intel Compiler on my computer. However, I am trying to run an old fortran file designed to run on an old Compaq compiler. It seems to have a problem with USE MSIMSL, USE File.f90, as well as ALLOCATE
Is there a way to have the Intel compile work as the old Compaq compiler?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您没有包含视觉数字 IMSL 库版本的特定英特尔 Fortran 编译器,那么我认为您无法让它工作,除非购买 IMSL 库或移植代码以使用其他的东西,比如英特尔的 MKL 或任何你可以从 netlib 中获取的开源东西。
如果您确实有 IMSL,那么您需要将
USE MIMSL
更改为USE NUMERICAL_LIBRARIES
,然后添加一些特定于编译器版本的咒语来构建 IMSL。USE
命令在语法上显然是不正确的,而且它在 DEC/Compaq 编译器中起作用的事实可能只是偶然的。在 Fortran 90 和 95 中,USE
用于模块导入。它们应该更改为INCLUDE
。ALLOCATE
也是 Fortran 90 和 95 的标准功能。如果没有有关问题确切性质的更多信息,实际上无法表明可能发生的情况。最后,我用 10 秒的时间用 google 找到了这个链接 讨论从 Compaq 编译器迁移到 Intel 编译器。也许会有用。祝你好运。
If you don't have the specific Intel Fortran compiler which includes a version of the visual numerics IMSL library, then I don't think you are going to get this to work, short of either buying the IMSL library or porting the code to use something else, like Intel's MKL or whatever open source stuff you can scrape off netlib.
If you do have IMSL, then you will need to change
USE MIMSL
toUSE NUMERICAL_LIBRARIES
and then add a few compiler version specific incantations to get the IMSL inclusion to build.The
USE
command is clearly syntactically incorrect, and the fact it worked in the DEC/Compaq compiler is probably only accidental. In Fortran 90 and 95USE
is intended for module importing. They should be changed toINCLUDE
.ALLOCATE
is also a standard feature of Fortran 90 and 95. Without more information about what the exact nature of the problem is, it really isn't possible to suggest what might be happening.Finally, 10 seconds with google found me this link which discusses migrating from Compaq to Intel compilers. Perhaps it will be of use. Best of luck.