论文标题
ECHAM辐射中的单精度算术减少运行时和能耗
Single precision arithmetic in ECHAM radiation reduces runtime and energy consumption
论文作者
论文摘要
我们将大气模型的辐射部分转换为单个精度算术。我们分析了不同的转换策略,并最终逐步使用了所有模块,子例程和功能。我们发现,小型代码部分仍然需要更高的精度算术。我们生成的代码可以轻松地从双重精度更改为单个精度,反之亦然,基本上是使用一个模块中的简单开关。我们将粗分辨率中的单个精度版本的输出与观察数据和原始双精度代码进行了比较。两个版本的结果都是可比的。在粗分辨率和低分辨率下,我们对可能的性能增益进行了广泛测试。单个精度辐射本身的加速约为40%,而使用转换后的辐射的整个ECHAM模型的加速速度在最佳配置中达到18%。我们进一步测量了能耗,也可以减少。
We converted the radiation part of the atmospheric model ECHAM to single precision arithmetic. We analyzed different conversion strategies and finally used a step by step change of all modules, subroutines and functions. We found out that a small code portion still requires higher precision arithmetic. We generated code that can be easily changed from double to single precision and vice versa, basically using a simple switch in one module. We compared the output of the single precision version in the coarse resolution with observational data and with the original double precision code. The results of both versions are comparable. We extensively tested different parallelization options with respect to the possible performance gain, in both coarse and low resolution. The single precision radiation itself was accelerated by about 40%, whereas the speed-up for the whole ECHAM model using the converted radiation achieved 18% in the best configuration. We further measured the energy consumption, which could also be reduced.