负载平衡并行粒子追踪的强化学习
Reinforcement Learning for Load-balanced Parallel Particle Tracing
摘要:
我们探索了一种在线强化学习(RL)范式,以动态优化分布式内存系统中的并行粒子跟踪性能。我们的方法结合了三个新的组件:(1)工作捐赠算法,(2)高阶工作量估计模型,(3)通信成本模型。首先,我们设计了一个基于RL的工作捐赠算法。我们的算法监控进程的工作负载,并创建RL代理,将数据块和粒子从高工作负载进程捐赠给低工作负载进程,以最大限度地减少程序执行时间。代理学习捐赠策略的基础上的奖励和成本函数设计考虑过程的工作量变化和捐赠行动的数据传输成本的飞行。其次,我们提出了一个工作负载估计模型,帮助RL代理估计未来计算过程的工作负载分布。第三,我们设计了一个考虑块和粒子数据交换成本的通信成本模型,帮助RL代理以最小的通信成本做出有效的决策。我们证明了我们的算法适用于大规模流体动力学,海洋和天气模拟数据中的不同流动行为。我们的算法提高了并行粒子跟踪性能的并行效率,负载平衡,I/O和通信的成本与多达16,384个处理器的评估。
英文摘要:
We explore an online reinforcement learning (RL) paradigm to dynamically optimize parallel particle tracing performance in distributed-memory systems. Our method combines three novel components: (1) a work donation algorithm, (2) a high-order workload estimation model, and (3) a communication cost model. First, we design an RL-based work donation algorithm. Our algorithm monitors workloads of processes and creates RL agents to donate data blocks and particles from high-workload processes to low-workload processes to minimize program execution time. The agents learn the donation strategy on the fly based on reward and cost functions designed to consider processes' workload changes and data transfer costs of donation actions. Second, we propose a workload estimation model, helping RL agents estimate the workload distribution of processes in future computations. Third, we design a communication cost model that considers both block and particle data exchange costs, helping RL agents make effective decisions with minimized communication costs. We demonstrate that our algorithm adapts to different flow behaviors in large-scale fluid dynamics, ocean, and weather simulation data. Our algorithm improves parallel particle tracing performance in terms of parallel efficiency, load balance, and costs of I/O and communication for evaluations with up to 16,384 processors.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。