DISPATCH:一个用于Exa尺度时代的数值模拟框架。I.基本面
DISPATCH: A Numerical Simulation Framework for the Exa-scale Era. I. Fundamentals
摘要:
我们引入了一个高性能的模拟框架,允许半独立的,基于任务的解决方案的偏微分方程组,通常表现为更新的集合中的“补丁”的时空。采用混合MPI/OpenMP执行模型,其中工作任务由等级本地“调度器”控制,该调度器从通常比物理核(或硬件线程)的数量大得多的任务集合中选择准备好更新的任务。任务的定义可以变化,例如,一些求解理想磁流体动力学(MHD)的方程,另一些求解非理想MHD、辐射转移或粒子运动的方程,还有一些应用粒子单元(PIC)方法。任务不必是基于网格的,而基于网格的任务可以使用笛卡尔或正交曲线网格。斑块可以是静止的或移动的。网格细化可以是静态的,也可以是动态的。框架的整体性能的一个具有决定性重要性的特征是,时间步长被确定并在本地应用;这允许在信号速度在整个计算域中变化很大的情况下所需的更新总数的潜在大幅减少,因此相应地减少计算时间。另一个特点是负载平衡算法,它在“本地”运行,旨在同时最大限度地减少负载和通信不平衡。该框架通常依赖于已经存在的求解器,其性能在框架下运行时得到增强,这是由于更有效的缓存使用,矢量化,本地时间步进,以及近线性,原则上,无限的OpenMP和MPI扩展。
英文摘要:
We introduce a high-performance simulation framework that permits the semi-independent, task-based solution of sets of partial differential equations, typically manifesting as updates to a collection of `patches' in space-time. A hybrid MPI/OpenMP execution model is adopted, where work tasks are controlled by a rank-local `dispatcher' which selects, from a set of tasks generally much larger than the number of physical cores (or hardware threads), tasks that are ready for updating. The definition of a task can vary, for example, with some solving the equations of ideal magnetohydrodynamics (MHD), others non-ideal MHD, radiative transfer, or particle motion, and yet others applying particle-in-cell (PIC) methods. Tasks do not have to be grid-based, while tasks that are, may use either Cartesian or orthogonal curvilinear meshes. Patches may be stationary or moving. Mesh refinement can be static or dynamic. A feature of decisive importance for the overall performance of the framework is that time steps are determined and applied locally; this allows potentially large reductions in the total number of updates required in cases when the signal speed varies greatly across the computational domain, and therefore a corresponding reduction in computing time. Another feature is a load balancing algorithm that operates `locally' and aims to simultaneously minimise load and communication imbalance. The framework generally relies on already existing solvers, whose performance is augmented when run under the framework, due to more efficient cache usage, vectorisation, local time-stepping, plus near-linear and, in principle, unlimited OpenMP and MPI scaling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。