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

利用MPI等待时间的轻量级任务卸载并行自适应网格细化

Lightweight Task Offloading Exploiting MPI Wait Times for Parallel Adaptive Mesh Refinement

Philipp Samfass, Tobias Weinzierl, Dominic E. Charrier, Michael Bader

摘要:

平衡复杂模拟的工作负载本质上是困难的,因为我们必须在网格上平衡计算工作负载和内存占用,这些网格可以随时改变或产生不可预测的每个网格实体的成本,而现代超级计算机及其互连开始表现出波动的性能。我们提出了一种新的轻量级的MPI+X的平衡技术,伴随着传统的,基于预测的负载均衡。它是一种反应扩散方法,使用MPI空闲时间的在线测量将任务暂时从过载迁移到未充分就业的行列。任务被部署到否则将等待的队列,以高优先级处理,并再次提供给过载的队列。这种迁移是非持久性的。我们的方法劫持空闲时间来做有意义的工作,并且是完全非阻塞的,异步的,分布式的,没有全局数据视图。在ExaHyPE引擎中开发的地震模拟代码的测试揭示了该方法的潜力。我们发现,在没有对代码库进行逻辑修改的情况下,不平衡的情况下,速度可以提高2-3倍,并表明该策略能够快速响应临时变化的工作负载或节点性能。

英文摘要:

Balancing the workload of sophisticated simulations is inherently difficult, since we have to balance both computational workload and memory footprint over meshes that can change any time or yield unpredictable cost per mesh entity, while modern supercomputers and their interconnects start to exhibit fluctuating performance. We propose a novel lightweight balancing technique for MPI+X to accompany traditional, prediction-based load balancing. It is a reactive diffusion approach that uses online measurements of MPI idle time to migrate tasks temporarily from overloaded to underemployed ranks. Tasks are deployed to ranks which otherwise would wait, processed with high priority, and made available to the overloaded ranks again. This migration is non-persistent. Our approach hijacks idle time to do meaningful work and is totally non-blocking, asynchronous and distributed without a global data view. Tests with a seismic simulation code developed in the ExaHyPE engine uncover the method's potential. We found speed-ups of up to 2-3 for ill-balanced scenarios without logical modifications of the code base and show that the strategy is capable to react quickly to temporarily changing workload or node performance.

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

↑