一种新的高性能GPGPU代码转换框架在大规模生产天气预报代码中的应用
New High Performance GPGPU Code Transformation Framework Applied to Large Production Weather Prediction Code
摘要:
我们介绍“混合Fortran”,一种新的方法,允许一个高性能的GPGPU端口的结构化网格Fortran代码。这种技术只需要对CPU目标代码库进行最小的更改,这在生产力方面是一个重大的进步。它已成功地应用于日本的中尺度天气预报模式ASUCA的动力核心和物理过程,该模式有超过15万行代码。通过一个最小的天气应用程序,类似于ASUCA的代码结构,混合Fortran的性能模型,以及今天的常用方法,OpenACC相比。结果表明,混合Fortran实现与OpenACC相比具有相同或更好的性能,其性能与CPU和GPU上的模型一致。在全规模生产运行中,使用具有1581 x 1301 x 58个单元的ASUCA网格和2km分辨率的真实世界天气数据,24台运行基于混合Fortran的GPU端口的NVIDIA Tesla P100显示可替代50多台运行参考实现的18核Intel Xeon Broadwell E5-2695 v4-这一成就可与GPGPU对其他天气模型的更具侵入性的重写相媲美。
英文摘要:
We introduce "Hybrid Fortran", a new approach that allows a high performance GPGPU port for structured grid Fortran codes. This technique only requires minimal changes for a CPU targeted codebase, which is a significant advancement in terms of productivity. It has been successfully applied to both dynamical core and physical processes of ASUCA, a Japanese mesoscale weather prediction model with more than 150k lines of code. By means of a minimal weather application that resembles ASUCA's code structure, Hybrid Fortran is compared to both a performance model as well as today's commonly used method, OpenACC. As a result, the Hybrid Fortran implementation is shown to deliver the same or better performance than OpenACC and its performance agrees with the model both on CPU and GPU. In a full scale production run, using an ASUCA grid with 1581 x 1301 x 58 cells and real world weather data in 2km resolution, 24 NVIDIA Tesla P100 running the Hybrid Fortran based GPU port are shown to replace more than 50 18-core Intel Xeon Broadwell E5-2695 v4 running the reference implementation - an achievement comparable to more invasive GPGPU rewrites of other weather models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。