arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.11076physics.comp-phcs.NAmath.NAphysics.flu-dyn
收藏

张量处理单元上流体流动科学计算的TensorFlow仿真框架

A TensorFlow Simulation Framework for Scientific Computing of Fluid Flows on Tensor Processing Units

Qing Wang, Matthias Ihme, Yi-Fan Chen, John Anderson

摘要:

在张量处理单元(TPU)平台上开发了一个用于流体流动预测的计算流体动力学(CFD)仿真框架。TPU架构具有加速的密集矩阵乘法,大带宽存储器和快速芯片间互连,使其对高性能科学计算具有吸引力。计算流体动力学框架使用低马赫近似求解变密度纳维-斯托克斯方程,并在同位结构网格上通过有限差分法离散控制方程。它使用基于图的TensorFlow作为编程范式。该框架的精度和性能进行了研究,数值和分析,特别是专注于TPU本地单精度浮点运算的影响。该算法和实现的验证与规范的2D和3D泰勒-格林涡模拟。为了证明模拟湍流的能力,模拟进行了两种配置,即衰减均匀各向同性湍流和湍流平面射流。这两个模拟显示良好的统计协议与参考解决方案。性能分析显示了线性弱扩展和超线性强扩展,可扩展到具有2048个内核的完整TPU v3 pod。

英文摘要:

A computational fluid dynamics (CFD) simulation framework for fluid-flow prediction is developed on the Tensor Processing Unit (TPU) platform. The TPU architecture is featured with accelerated dense matrix multiplication, large high bandwidth memory, and a fast inter-chip interconnect, making it attractive for high-performance scientific computing. The CFD framework solves the variable-density Navier-Stokes equation using a low-Mach approximation, and the governing equations are discretized by a finite-difference method on a collocated structured mesh. It uses the graph-based TensorFlow as the programming paradigm. The accuracy and performance of this framework is studied both numerically and analytically, specifically focusing on effects of TPU-native single precision floating point arithmetic. The algorithm and implementation are validated with canonical 2D and 3D Taylor-Green vortex simulations. To demonstrate the capability for simulating turbulent flows, simulations are conducted for two configurations, namely decaying homogeneous isotropic turbulence and a turbulent planar jet. Both simulations show good statistical agreement with reference solutions. The performance analysis shows a linear weak scaling and a superlinear strong scaling up to a full TPU v3 pod with 2048 cores.

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

↑