利用多GPU加速微磁与原子级自旋模拟
Accelerating micromagnetic and atomistic simulations using multiple GPUs
AI总结:
本研究提出多GPU卷积算法,通过并行单GPU FFT处理长程退磁相互作用,实现微磁与原子级模拟的高效扩展,支持高达20亿自旋的蒙特卡洛模拟。
摘要:
研究表明,微磁和原子级自旋动力学模拟可以利用多个GPU来减少计算时间,同时还能实现比单个GPU更大的模拟规模。虽然依赖于相邻自旋的相互作用(如交换相互作用)可以通过在GPU之间使用halo区域传输数据或直接内存访问来高效实现,但实现长程退磁相互作用是实现良好性能扩展的主要难点,其中GPU之间的数据传输速率是一个显著的瓶颈。本文开发了一种多GPU卷积算法,该算法依赖于并行执行的单GPU FFT。结果表明,即使在退磁相互作用计算时间占主导地位的微磁模拟中,也能实现良好的性能扩展,对于2、3和4个GPU,加速比分别高达1.8、2.5和3.1。本文开发的代码可用于任意数量的GPU并行运行,性能扩展强烈依赖于GPU间数据传输速率和连接拓扑。在包含自旋输运求解器的微磁模拟中,这一性能得到进一步改善,对于2、3和4个GPU,加速比分别高达1.96、2.8和3.7。最佳情况出现在原子级自旋动力学模拟中,其中退磁相互作用通过自旋平均单元实现。使用配备4个GPU的单台工作站,研究表明原子级自旋动力学模拟可支持多达10亿个自旋,原子级蒙特卡洛模拟可支持多达20亿个自旋,且性能扩展接近理想。
英文摘要:
It is shown micromagnetic and atomistic spin dynamics simulations can use multiple GPUs in order to reduce computation time, but also to allow for a larger simulation size than is possible on a single GPU. Whilst interactions which depend on neighbouring spins, such as exchange interactions, may be implemented efficiently by transferring data between GPUs using halo regions, or alternatively using direct memory accesses, implementing the long-range demagnetizing interaction is the main difficulty in achieving good performance scaling, where the data transfer rate between GPUs is a significant bottleneck. A multi-GPU convolution algorithm is developed here, which relies on single-GPU FFTs executed in parallel. It is shown that even for micromagnetic simulations where the demagnetizing interaction computation time dominates, good performance scaling may be achieved, with speedup factors up to 1.8, 2.5, and 3.1, for 2, 3, and 4 GPUs respectively. The code developed here can be used for any number of GPUs in parallel, with performance scaling strongly dependent on inter-GPU data transfer rate and connection topology. This is further improved in micromagnetic simulations which include a spin transport solver, obtaining speedup factors up to 1.96, 2.8, and 3.7, for 2, 3, and 4 GPUs respectively. The best case scenario is obtained for atomistic spin dynamics simulations, where the demagnetizing interaction is implemented with spin-averaged cells. Using a single workstation with 4 GPUs, it is shown atomistic spin dynamics simulations with up to 1 billion spins, and atomistic Monte Carlo simulations with up to 2 billion spins are possible, with a near-ideal performance scaling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。