不连续Galerkin方法的另一种张量方法及其它应用
Yet Another Tensor Toolbox for discontinuous Galerkin methods and other applications
摘要:
偏微分方程的数值解是超级计算中许多重大挑战的核心。基于高阶不连续Galerkin(DG)离散化的求解器已被证明可以在大型超级计算机上扩展,具有出色的性能和效率,如果实现利用所有级别的并行性并针对特定架构进行定制。然而,每年都有新的超级计算机出现,硬件特定的考虑因素列表也在增长,同时DG代码中所需的功能列表也在增长。因此,我们认为,一个可持续的DG代码需要一个抽象层,以实现一个合适的语言的数值计划。我们探讨的可能性,抽象的数值方案作为小张量操作,描述它们在一个特定领域的语言(DSL)类似爱因斯坦符号,并将它们映射到现有的代码生成器生成小矩阵矩阵乘法例程。我们的DSL编译器实现了用于大张量收缩的经典优化,并且我们提出了新颖的优化技术,例如等效稀疏模式和临时张量的最佳索引排列。我们的应用程序的例子,其中包括地震模拟软件SeisSol,表明所产生的内核实现超过50%的峰值性能,而DSL大大简化了实现。
英文摘要:
The numerical solution of partial differential equations is at the heart of many grand challenges in supercomputing. Solvers based on high-order discontinuous Galerkin (DG) discretisation have been shown to scale on large supercomputers with excellent performance and efficiency, if the implementation exploits all levels of parallelism and is tailored to the specific architecture. However, every year new supercomputers emerge and the list of hardware-specific considerations grows, simultaneously with the list of desired features in a DG code. Thus we believe that a sustainable DG code needs an abstraction layer to implement the numerical scheme in a suitable language. We explore the possibility to abstract the numerical scheme as small tensor operations, describe them in a domain-specific language (DSL) resembling the Einstein notation, and to map them to existing code generators which generate small matrix matrix multiplication routines. The compiler for our DSL implements classic optimisations that are used for large tensor contractions, and we present novel optimisation techniques such as equivalent sparsity patterns and optimal index permutations for temporary tensors. Our application examples, which include the earthquake simulation software SeisSol, show that the generated kernels achieve over 50 % peak performance while the DSL considerably simplifies the implementation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。