arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.06297cs.DC
收藏

二维伊辛模型在GPU上的性能研究

A Performance Study of the 2D Ising Model on GPUs

Joshua Romero, Mauro Bisson, Massimiliano Fatica, Massimo Bernaschi

摘要:

二维伊辛模型的模拟被用作基准,以显示图形处理单元(GPU)的计算能力。GPU上现在提供的丰富编程环境和灵活的硬件功能使我们能够快速试验几种实现思路:一种简单的基于模板的算法,将模板操作重新转换为矩阵乘法,以利用NVIDIA GPU上提供的Tensor Core,以及高度优化的多自旋编码方法。使用CUDA中提供的托管内存API,可以在多GPU NVIDIA DGX-2服务器上简单高效地分发这些实现。我们表明,即使是一个基本的GPU实现可以优于目前的结果发表在TPU和优化的多GPU实现可以模拟非常大的晶格比自定义FPGA解决方案更快。

英文摘要:

The simulation of the two-dimensional Ising model is used as a benchmark to show the computational capabilities of Graphic Processing Units (GPUs). The rich programming environment now available on GPUs and flexible hardware capabilities allowed us to quickly experiment with several implementation ideas: a simple stencil-based algorithm, recasting the stencil operations into matrix multiplies to take advantage of Tensor Cores available on NVIDIA GPUs, and a highly optimized multi-spin coding approach. Using the managed memory API available in CUDA allows for simple and efficient distribution of these implementations across a multi-GPU NVIDIA DGX-2 server. We show that even a basic GPU implementation can outperform current results published on TPUs and that the optimized multi-GPU implementation can simulate very large lattices faster than custom FPGA solutions.

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

↑