arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1802.04243cs.CEcs.MS
收藏

GPU算法的实现SIMPLE-TS用于非定常粘性可压缩导热气体流动的计算

GPU implementation of algorithm SIMPLE-TS for calculation of unsteady, viscous, compressible and heat-conductive gas flows

Kiril S. Shterev

摘要:

最近使用图形处理单元(GPU)进行高性能计算的趋势是由这些单元的高性价比驱动的,并由其成本效益补充。乍一看,计算流体动力学(CFD)求解器与GPU资源完美匹配,因为这些求解器进行密集的计算,并且使用相对较少的内存。然而,关于GPU相对于CPU的这一重大优势的实际应用,特别是对于具有双精度的的粘性、可压缩、导热气体流的计算,却鲜有成果。本文根据对流项的时间近似,提出了两种GPU算法:显式和隐式格式。为了减少设备存储器之间的数据传输并增加GPU代码的算术强度,我们最小化内核的数量。GPU算法在一个内核中实现的隐式计划和两个内核的显式计划。使用宏和优化将数值方程放在一起,将数据从全局复制到私有内存,并将数据重用留给编译器。因此,保持代码更简单,具有良好的维护性。作为一个测试的情况下,我们模拟流过去的正方形在微通道在超音速。测试显示,AMD Radeon R9 280 X的整体加速比与Intel Core i5 - 4690核心相比高达102倍,与Intel Core i7 - 920核心相比高达184倍,而NVIDIA Tesla M2090的加速比与Intel Core i5 - 4690核心相比高达11倍,与Intel Core i7 - 920核心相比高达20倍。GPU代码的内存需求与CPU代码相比有所改善。它需要1 [GB]全局内存来存储590万个有限卷,这比C++ CPU代码少两倍。毕竟,代码是简单的,可移植的(用OpenCL编写),内存效率高,易于修改,而且表现出出色的性能。

英文摘要:

The recent trend of using Graphics Processing Units (GPU's) for high performance computations is driven by the high ratio of price performance for these units, complemented by their cost effectiveness. At first glance, computational fluid dynamics (CFD) solvers match perfectly to GPU resources because these solvers make intensive calculations and use relatively little memory. Nevertheless, there are scarce results about the practical use of this serious advantage of GPU over CPU, especially for calculations of viscous, compressible, heat-conductive gas flows with double precision accuracy. In this paper, two GPU algorithms according to time approximation of convective terms were presented: explicit and implicit scheme. To decrease data transfers between device memories and increase the arithmetic intensity of a GPU code we minimize the number of kernels. The GPU algorithm was implemented in one kernel for the implicit scheme and two kernels for the explicit scheme. The numerical equations were put together using macros and optimization, data copy from global to private memory, and data reuse were left to the compiler. Thus keeps the code simpler with excellent maintenance. As a test case, we model the flow past squares in a microchannel at supersonic speed. The tests show that overall speedup of AMD Radeon R9 280X is up to 102x compared to Intel Core i5-4690 core and up to 184x compared to Intel Core i7-920 core, while speedup of NVIDIA Tesla M2090 is up to 11x compared to Intel Core i5-4690 core and up to 20x compared to Intel Core i7-920 core. Memory requirements of GPU code are improved compared to CPU one. It requires 1[GB] global memory for 5.9 million finite volumes that are two times less compared to C++ CPU code. After all the code is simple, portable (written in OpenCL), memory efficient and easily modifiable moreover demonstrates excellent performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑