SWIFT:保持弱- scalability,时间步长的动态范围为$10^4$,以利用极端的自适应性
SWIFT: Maintaining weak-scalability with a dynamic range of $10^4$ in time-step size to harness extreme adaptivity
摘要:
宇宙学模拟需要使用多重时间步进方案。如果没有这样一个方案,宇宙学模拟将是不可能的,因为它们的动态范围很高,密度超过11个数量级。如此大的动态范围导致时间步长超过四个数量级的范围,这提出了显著的负载平衡挑战。在这项工作中,宇宙学模拟所呈现的极端适应性通过使用代码SWIFT以三种主要方式解决。首先,使用自适应网格来确保在给定的时间步长中只有相关的粒子相互作用。其次,基于任务的并行性用于确保单个节点内的有效负载平衡,使用pthreads和SIMD向量化。最后,提出了一种区域分解策略,使用图区域分解库METIS,平分的工作,必须进行的模拟节点之间使用MPI。这三种策略为SWIFT提供了近乎完美的弱扩展特性,在典型问题上从1个核心扩展到4096个核心时,仅损失25%的性能,同时比事实标准Gadget-2代码快30倍以上。
英文摘要:
Cosmological simulations require the use of a multiple time-stepping scheme. Without such a scheme, cosmological simulations would be impossible due to their high level of dynamic range; over eleven orders of magnitude in density. Such a large dynamic range leads to a range of over four orders of magnitude in time-step, which presents a significant load-balancing challenge. In this work, the extreme adaptivity that cosmological simulations present is tackled in three main ways through the use of the code SWIFT. First, an adaptive mesh is used to ensure that only the relevant particles are interacted in a given time-step. Second, task-based parallelism is used to ensure efficient load-balancing within a single node, using pthreads and SIMD vectorisation. Finally, a domain decomposition strategy is presented, using the graph domain decomposition library METIS, that bisects the work that must be performed by the simulation between nodes using MPI. These three strategies are shown to give SWIFT near-perfect weak-scaling characteristics, only losing 25% performance when scaling from 1 to 4096 cores on a representative problem, whilst being more than 30x faster than the de-facto standard Gadget-2 code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。