• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2012, Vol. 34 ›› Issue (6): 65-69.

• 论文 • 上一篇    下一篇

GRAPES有限区域伴随模式内存优化

李金才,赵文涛,赵军   

  1. (国防科学技术大学计算机学院,湖南 长沙 410073)
  • 收稿日期:2010-12-31 修回日期:2011-03-28 出版日期:2012-06-25 发布日期:2012-06-25
  • 基金资助:

    国家自然科学基金资助项目(40775064);中国气象局武汉暴雨研究所2008年度暴雨研究开放基金资助项目(IHR2008K04)

Memory Optimization of the Adjoint Model of the GRAPES Regional Model

LI Jincai,ZHAO Wentao,ZHAO Jun   

  1. (School of Computer Science,National University of Defense Technology,Changsha 410073,China)
  • Received:2010-12-31 Revised:2011-03-28 Online:2012-06-25 Published:2012-06-25

摘要:

GRAPES有限区域伴随模式是基于自动微分工具TAPENADE转换与手工代码编写相结合的方式开发而成,主要由模式程序和内存支撑函数库(PLP库)构成。由于TAPENADE采用全存储策略来保存中间变量,造成了伴随模式运行过程中内存开销过大,并且出现随着时间步的增加内存不断增长的情况。对伴随模式内存支撑函数库中POP类函数算法进行修改,解决了内存增长的问题;从整型变量、实型变量和正模式子程序调用三个方面对模式程序进行优化,使得伴随模式运行时的内存开销显著减少。

关键词: 数值天气预报, GRAPES, 伴随模式, 内存优化, TAPENADE

Abstract:

The adjoint model of the GRAPES regional model has been developed with a combination of automatic differentiation tool TAPENADE and handcoding. The model is made up of mode programs and a memory supporting library (PLP library). The TAPENADE employs a complete storage strategy to save the intermediate variables. This causes too much memory overhead during the operation of the adjoint mode and increases memory consumption with the time step going on. The growing of memory is addressed by modifying the POP functions in the PLP. The mode programs are optimized for integer variables, real variables and calling subroutines of the forward model so that the memory overhead is significantly decreased.

Key words: numerical weather forecast, GRAPES, adjoint model;memory optimization;TAPENADE