arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.14027cs.MSphysics.comp-ph
收藏

通量重建中的双曲扩散:通过张量积元素内的核融合进行优化

Hyperbolic Diffusion in Flux Reconstruction: Optimisation through Kernel Fusion within Tensor-Product Elements

Will Trojak, Rob Watson, Freddie Witherden

摘要:

在这项初步研究中,提出了新的方法,在人工压缩性方法(ACM)的GPU内核的融合,使用张量积元素与常数雅可比矩阵和通量重建。这是通过扩散项的双曲线化而实现的,这消除了形成粘性应力所需的昂贵算法步骤。两个融合的方法,提供不同程度的并行性。这被认为是必要的工作量的变化,因为准确度的元素的顺序增加。这些方法的进一步优化,包括代时内存管理器,最大限度地提高资源利用率。融合的内核能够实现3-4倍的加速比,这与理论上的最大加速比4相比是有利的。在三维的测试情况下,所产生的融合内核被发现减少总运行时间由${\sim}25\%$,并且,当与标准的ACM配方相比,模拟表明,可以实现$2.3$倍的加速。

英文摘要:

Novel methods are presented in this initial study for the fusion of GPU kernels in the artificial compressibility method (ACM), using tensor product elements with constant Jacobians and flux reconstruction. This is made possible through the hyperbolisation of the diffusion terms, which eliminates the expensive algorithmic steps needed to form the viscous stresses. Two fusion approaches are presented, which offer differing levels of parallelism. This is found to be necessary for the change in workload as the order of accuracy of the elements is increased. Several further optimisations of these approaches are demonstrated, including a generation time memory manager which maximises resource usage. The fused kernels are able to achieve 3-4 times speedup, which compares favourably with a theoretical maximum speedup of 4. In three dimensional test cases, the generated fused kernels are found to reduce total runtime by ${\sim}25\%$, and, when compared to the standard ACM formulation, simulations demonstrate that a speedup of $2.3$ times can be achieved.

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

↑