Most parallel applications suffer from load imbalance, a crucial performance degradation factor. In particle simulations, this is mainly due to the migration of particles between processing elements, which eventually gather unevenly and create workload imbalance. Dynamic load balancing is used at various iterations to mitigate load imbalance, employing a partitioning method to divide the computational space evenly while minimizing communications. In this paper, we propose a novel partitioning methodology called ``informed partitioning''. It uses information based on the evolution of the computation to reduce the load balancing growth and the number of load balancing calls. We illustrate informed partitioning by proposing a new geometric partitioning technique for particles simulations. This technique is derived from the well-known recursive coordinate bisection and employs the velocity of the particles to guide the bisection axis. To properly compare the performance of our new method with existing partitioning techniques during application execution, we introduce an effort metric based on a theoretical model of load balanced parallel application time. We propose a proof-of-concept of informed partitioning, through a numerical study, on three N-Body simulations with various particle dynamics, and we discuss its performance against popular geometric partitioning techniques. Moreover, we show that our effort metric can be used to rank partitioning techniques by their efficiency at any time point during the simulation. Eventually, this could be used to choose the best partitioning on the fly. In the numerical study, we report that our novel concept increases the performance of two experiments out of three by up to 76% and 15%, while being marginally slower by only $3\%$ in one experiment. Also, we discuss the limitations of our implementation of informed partitioning and our effort metric.
Load Balancing using Hilbert Space-filling Curves for Parallel Reservoir Simulations
负载均衡(网格分区)的目标是最小化总体计算和通信,并确保所有处理器具有相似的工作负载。几何方法通过使用单元的位置来划分网格,而拓扑方法与单元的连通性一起工作,其通常被描述为图。本文介绍了一种Hilbert空间填充曲线法。空间填充曲线是一条连续的曲线,它定义了一维空间和多维空间之间的映射。希尔伯特空间填充曲线是希尔伯特发现的一种特殊的空间填充曲线,它具有许多有用的特性,如良好的局部性,这意味着在多维空间中相互接近的两个对象在一维空间中也相互接近。这个属性可以为基于网格的并行应用程序中的通信建模。希尔伯特空间填充曲线方法的思想是将计算域映射到一维空间,将一维空间划分为一定的区间,并将同一区间内的所有单元分配给MPI。为了实现负载均衡方法,需要一个映射内核将高维坐标转换为标量值,还需要一个高效的一维分区模块,该模块划分一维空间并确保所有间隔具有相似的工作负载。将Hilbert空间填充曲线法与著名的图划分软件ParMETIS进行了比较。实验结果表明,本文提出的Hilbert空间填充曲线方法具有良好的划分质量。它已经应用于具有数十亿个单元的网格,并且在IBM Blue Gene/Q上获得了线性可扩展性。
Partitioning Algorithms for Improving Efficiency of Topic Modeling Parallelization
主题建模在数据分析和数据采掘中是一种非常强大的技术,但它通常很慢。已经提出了许多并行化方法来加速学习过程。然而,它们通常不是很有效,因为有很多种开销,特别是负载平衡问题。我们解决这个问题,提出了三个分区算法,运行速度更快,或实现更好的负载平衡比目前的分区算法。这些算法可以很容易地扩展,以提高类似于LDA的其他主题模型的并行化效率,例如,Bag of Timestamps,它是LDA的扩展,包含时间信息。我们评估这些算法在两个流行的数据集,NIPS和NYTimes。我们还构建了一个包含1951年至2010年计算机科学领域超过1,000,000份科学出版物的数据集,以实验Bag of Timestamps并行化,我们设计该并行化来展示所提出的算法的可扩展性。结果有力地证实了这些算法的优点。
Scalable Multi-GPU Simulation of 3D Multicellular Growth with RNN-Based Workload Balancing
School of Computing, University of Nebraska–Lincoln(内布拉斯加大学林肯分校计算学院);Department of Mathematics, University of Nebraska–Lincoln(内布拉斯加大学林肯分校数学系);Department of Radiation Oncology, University of Rochester Medical Center(罗切斯特医学中心放射肿瘤学系);School of Biological Sciences, University of Nebraska–Lincoln(内布拉斯加大学林肯分校生物科学学院);Holland Computing Center, University of Nebraska–Lincoln(内布拉斯加大学林肯分校霍兰德计算中心)
细粒度的工作负载和资源平衡是GPU上常规和不规则计算的高性能的关键。在这篇论文中,我们进行了广泛的调查,现有的负载平衡技术,建立一个抽象的解决困难的GPU上调度计算。我们提出了一个GPU细粒度的负载平衡抽象,从工作处理中提取负载均衡,旨在支持静态和动态调度,并通过可编程接口实现新的负载平衡调度。在我们的工作之前,释放GPU在不规则问题上的潜力的唯一方法是通过特定于应用程序的紧耦合负载平衡技术来实现工作负载平衡。通过我们的开源负载平衡框架,我们希望在GPU上开发不规则并行算法时提高程序员的生产力,并通过允许快速试验各种现有负载平衡技术来提高此类应用程序的整体性能特征。利用我们从负载平衡不规则工作负载中获得的见解,我们构建了Stream-K,这是一个以工作为中心的矩阵乘法(GEMM)和密集线性代数中相关计算的并行化。而当代的分解主要是基于瓦片的,我们的方法通过在物理处理元件之间划分均匀份额的聚合内部循环迭代来操作。这提供了计算资源的近乎完美的利用,而不管任何给定问题的输出平铺跨底层处理元素量化的效率如何。在GPU处理器上,我们的Stream-K GEMM并行化可产生高达14倍和6.7倍的峰值加速比,以及在32 K GEMM问题几何中比最先进的数学库(如CUTLASS和cuBLAS)更高且更一致的平均性能响应。