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

CAT:张量核心上的元胞自动机

CAT: Cellular Automata on Tensor cores

Cristóbal A. Navarro, Felipe A. Quezada, Enzo Meneses, Héctor Ferrada, Nancy Hitschfeld

AI总结:

本研究提出基于GPU张量核心的元胞自动机加速方案CAT,通过扩展PRAM模型和LTL家族案例验证,在大邻域半径下实现最高101倍基线加速与最优能效,为大半径元胞自动机研究提供高效GPU方案。

摘要:

元胞自动机(CA)是一类能够通过简单局部规则产生复杂涌现行为的仿真模型。尽管现有最先进的GPU方案凭借其数据并行特性已经具备较快速度,但在邻域半径较大的元胞自动机场景中,其性能会迅速下降。随着张量核心在整个GPU生态系统中的普及,研究者们越来越关注如何在人工智能这一张量核心的原始应用领域之外,挖掘这些高速计算单元的利用潜力。\n本研究提出了CAT——一种基于GPU张量核心的加速方案,适用于元胞状态转移函数基于邻域加权求和运算的元胞自动机。研究从理论层面采用扩展的PRAM(并行随机存取机)成本模型对CAT进行评估,同时以Larger Than Life(LTL)元胞自动机家族作为案例开展实证验证。\n结果表明,该成本模型具有较高准确性:CAT在1 ≤ r ≤ 16的全部半径范围内均表现出常数时间复杂度,其理论加速比与实证结果吻合。在低半径r=1、2时,CAT性能具有竞争力,仅略逊于当前最快的GPU方案;从r=3开始,CAT的性能逐步超越所有其他方案,相较于GPU基线实现最高101倍的加速,相较于现有最快的GPU方案实现约14倍的加速。在能效方面,CAT在1 ≤ r ≤ 4范围内具备竞争力,当r ≥ 5时成为能效最高的方案。在跨GPU架构的性能扩展性方面,CAT呈现出良好的发展趋势:若该趋势在未来代际GPU中得以延续,其性能提升速率将超过传统GPU方案。本研究获得的结果表明,对于需要研究大邻域半径元胞自动机涌现现象的科研人员而言,CAT是一种极具吸引力的GPU实现方案。

英文摘要:

Cellular automata (CA) are simulation models that can produce complex emergent behaviors from simple local rules. Although state-of-the-art GPU solutions are already fast due to their data-parallel nature, their performance can rapidly degrade in CA with a large neighborhood radius. With the inclusion of tensor cores across the entire GPU ecosystem, interest has grown in finding ways to leverage these fast units outside the field of artificial intelligence, which was their original purpose. In this work, we present CAT, a GPU tensor core approach that can accelerate CA in which the cell transition function acts on a weighted summation of its neighborhood. CAT is evaluated theoretically, using an extended PRAM cost model, as well as empirically using the Larger Than Life (LTL) family of CA as case studies. The results confirm that the cost model is accurate, showing that CAT exhibits constant time throughout the entire radius range $1 \le r \le 16$, and its theoretical speedups agree with the empirical results. At low radius $r=1,2$, CAT is competitive and is only surpassed by the fastest state-of-the-art GPU solution. Starting from $r=3$, CAT progressively outperforms all other approaches, reaching speedups of up to $101\times$ over a GPU baseline and up to $\sim 14\times$ over the fastest state-of-the-art GPU approach. In terms of energy efficiency, CAT is competitive in the range $1 \le r \le 4$ and from $r \ge 5$ it is the most energy efficient approach. As for performance scaling across GPU architectures, CAT shows a promising trend that if continues for future generations, it would increase its performance at a higher rate than classical GPU solutions. The results obtained in this work put CAT as an attractive GPU approach for scientists that need to study emerging phenomena on CA with large neighborhood radius.

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

↑