摘要
大涡模拟的思想是直接数值模拟大尺度紊流运动,利用亚格子模型模拟小尺度紊流运动对大尺度紊流运动的影响。大涡模拟在计算时间和计算费用方面优于直接数值模拟,在信息完整性方面优于雷诺平均模型。首先实现了3D大涡模拟程序(Leslie3d)在异构平台(CPU+MIC)的正确运行,然后分别对CPU端和MIC端的代码进行了优化,包括利用了多线程、SIMD向量化以及循环展开等编译优化手段,最后通过负载均衡实现了CPU+MIC的协同优化。相对原始发行版代码,优化后的代码在异构平台上获得了24x的加速效果。程序的优化思路对大涡模拟程序在国产异构平台上的优化具有指导意义。
Large eddy simulation means numerical simulation of large scale turbulent motion and simulating the influence of small scale turbulent motion on large scale turbulent motion using sub-grid model. Large eddy simulation is better than direct numerical simulation in terms of computation time and cost and is better than Reynolds averaged model in terms of information integrity. First we real- ized the correct execution of large eddy simulation program (Leslie3d) on heterogeneous platform (CPU + MIC). Then we carried out the optimization on CPU and MIC, including multi-thread, SIMD vectorization, loop unrolling and some other compiler optimization techniques. Finally we real- ized the co-optimization of CPU + MIC by load balancing. The optimized code gets an acceleration of 24 times on heterogeneous platform compared with the original one. The optimization idea of the pro- gram has guiding significance for optimization on domestic heterogeneous platform.
出处
《信息工程大学学报》
2017年第3期359-363,369,共6页
Journal of Information Engineering University
基金
郑州市科技局前沿技术研究计划资助项目(141PQYJS558)
关键词
大涡模拟
并行优化
MIC平台
异构协同
large eddy simulation
parallel optimization
MIC platform
heterogeneous collaboration