Intel Fortran编译器的发展
10/21
本文最后更新于
2024年08月03日,已超过
210天没有更新。如果文章内容或图片资源失效,请留言反馈,我会及时处理,谢谢!
作为商业Fortran编译器代表,Intel Fortran编译器在语言标准兼容性、性能方面非常出色,是很多NWP模式主要编译工具。
Intel C/Fortran编译器之前是包含在Parallel Studio中,它是商业收费软件。但自2020年12月开始Intel oneAPI品牌取代Parallel Studio,并采用免费使用策略。
现在Intel oneAPI套件中包含两套Fortran编译器:
- Intel Fortran Compiler Classic (ifort)
- Intel Fortran Compiler (ifx)
其中ifort只用于CPU端,而ifx用于面向未来XPU(CPU/GPU等)异构计算。
两套编译器使用相同的编译前端(Intel Fortran Frontend, FFE)。
ifort 特点:
- Intel Fortran parser/analyzer + Intel optimizer/code generation
- F2018标准完全支持,只用于CPU端,性能优
ifx特点:
- Intel Fortran parser/analyzer + LLVM optimizer and code generation (with Intel enhancements)
- F2003/F2008标准(除了参数化派生类型、Coarrays)
- 与ifort二进制兼容
两者对比见下图。
从下图可以看出,Intel Fortran编译器最终是要统一到ifx,但近几年ifort仍能正常使用。
Intel对“Deprecation"定义与语言标准中定义类似,不鼓励使用,并警告未来可能退出,但不会立即移除,会持续兼容一段时间。
对于主力开发工具是ifort的开发者来说,目前建议策略是继续使用ifort编译器,但保持对ifx关注,待ifx在CPU端性能指标达到ifort水平后,考虑编译器工具迁移到ifx。
资料来源
IXPUG Resources - Intel Fortran Compilers: A Tradition of Trusted Application Performanc | IXPUG

