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

TPU团簇Ising模型的高性能Monte Carlo模拟

High Performance Monte Carlo Simulation of Ising Model on TPU Clusters

Kun Yang, Yi-Fan Chen, Georgios Roumpos, Chris Colby, John Anderson

摘要:

大规模深度学习受益于新兴的人工智能加速器。其中一些加速器的设计对于AI之外的计算密集型应用程序来说足够通用,Cloud TPU就是这样一个例子。在本文中,我们展示了一种使用TensorFlow on Cloud TPU来模拟二维伊辛模型的新方法。TensorFlow和Cloud TPU框架使简单可读的代码能够表达复杂的分布式算法,而不会影响性能。我们的代码实现适合小型笔记本电脑,并充分利用Cloud TPU的高效矩阵操作和专用高速芯片间连接。性能极具竞争力:据我们所知,它在单核和多核中的性能分别超过了60%和250%,并且具有良好的线性扩展能力。与Tesla V100 GPU相比,单核性能保持了约10%的增益。我们还证明,使用低精度算法-bfloat 16-不妥协的模拟结果的正确性。

英文摘要:

Large-scale deep learning benefits from an emerging class of AI accelerators. Some of these accelerators' designs are general enough for compute-intensive applications beyond AI and Cloud TPU is one such example. In this paper, we demonstrate a novel approach using TensorFlow on Cloud TPU to simulate the two-dimensional Ising Model. TensorFlow and Cloud TPU framework enable the simple and readable code to express the complicated distributed algorithm without compromising the performance. Our code implementation fits into a small Jupyter Notebook and fully utilizes Cloud TPU's efficient matrix operation and dedicated high speed inter-chip connection. The performance is highly competitive: it outperforms the best published benchmarks to our knowledge by 60% in single-core and 250% in multi-core with good linear scaling. When compared to Tesla V100 GPU, the single-core performance maintains a ~10% gain. We also demonstrate that using low precision arithmetic---bfloat16---does not compromise the correctness of the simulation results.

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

↑