多核CPU和GPU上的Magnus积分器
Magnus integrators on multicore CPUs and GPUs
AI总结:
本文研究了求解时间依赖哈密顿量的离散薛定谔方程的数值方法,采用Magnus积分器结合Leja插值框架计算矩阵指数作用,探讨了GPU在密集和稀疏矩阵问题中的加速效果及无交换子Magnus积分器的性能。
摘要:
本文考虑了求解具有时间依赖哈密顿量的离散薛定谔方程的数值方法(受自旋系统研究问题启发)。我们将考虑短程相互作用(导致稀疏矩阵的演化方程)和长程相互作用(导致密集矩阵)。这两种设置展现出非常不同的计算特性。我们使用Magnus积分器进行时间积分,并采用基于Leja插值的框架计算所得到的矩阵指数作用。我们考虑了传统Magnus积分器(在文献中广泛用于此类问题)以及最近开发的无交换子Magnus积分器,并在现代CPU和GPU系统上实现了它们。我们发现GPU在这些问题中可以提供显著的加速(在密集情况下可达10倍)。在稀疏情况下,GPU仅在大问题规模时具有优势,且获得的加速效果更为有限。在大多数情况下,无交换子变体表现更优,但尤其在GPU上,这种优势相当有限。事实上,GPU(以及多核CPU)上无交换子方法的优势并非源于交换子的消除。这有重要的影响,对设计更高效的数值方法具有重要影响。
英文摘要:
In the present paper we consider numerical methods to solve the discrete Schrödinger equation with a time dependent Hamiltonian (motivated by problems encountered in the study of spin systems). We will consider both short-range interactions, which lead to evolution equations involving sparse matrices, and long-range interactions, which lead to dense matrices. Both of these settings show very different computational characteristics. We use Magnus integrators for time integration and employ a framework based on Leja interpolation to compute the resulting action of the matrix exponential. We consider both traditional Magnus integrators (which are extensively used for these types of problems in the literature) as well as the recently developed commutator-free Magnus integrators and implement them on modern CPU and GPU (graphics processing unit) based systems. We find that GPUs can yield a significant speed-up (up to a factor of $10$ in the dense case) for these types of problems. In the sparse case GPUs are only advantageous for large problem sizes and the achieved speed-ups are more modest. In most cases the commutator-free variant is superior but especially on the GPU this advantage is rather small. In fact, none of the advantage of commutator-free methods on GPUs (and on multi-core CPUs) is due to the elimination of commutators. This has important consequences for the design of more efficient numerical methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。