摘要
本文介绍了一种在奔腾 4处理器微机上 Linux操作系统下的优化编译方法。作者通过查询、试验发现 :使用 Intel编译器优化中尺度模式 MM5 ,能够使得 MM5在奔腾 4上的运行速度提高 1.4~ 1.5倍。利用 Intel编译器优化后的MM5模式 ,进行了三个月资料的计算 ,模式运行稳定。给出了一个使用 Intel编译器和通常使用的 PGI编译器分别编译的计算实例 ,对比表明 :使用 Intel编译器明显提高了运算速度 。
A compiler optimization method under Linux operation system on Pentium 4 processor computer is introduced in this paper. According to the setup files for MM5, the suite of compilers from the Portland Group should be used to compile MM5. Recently, however, Intel has produced its own suite of compilers, and these can also be used to compile MM5. The Intel compilers have already been shown to produce efficient code, something can also benefit from MM5. Tuning the performance of large applications like MM5 is important to utilize the investment in hardware as much as possible. In our experience Intel's compilers produce very efficient optimization code. A speedup of 40-50 % is possible by using the Intel compilers instead of the Portland compilers with Pentium 4 processor. The Intel compilers optimized MM5 model also shows its stability in three months' real-data applications. An instance is selected to verify Intel compiler suite's forecasting result with Portland compilers which is now used. Comparison shows that precipitation field and geopotential height field have no significant difference between the two compiler suites.
出处
《气象科学》
CSCD
北大核心
2003年第3期359-364,共6页
Journal of the Meteorological Sciences
基金
国家科研院所社会公益研究专项资金项目 2 0 0 1D1B10 0 84资助
关键词
编译优化
奔腾4
MM5
Compiler optimization Intel Pentium 4 processor MM5