Argonne National Laboratory

Inspector-Executor Load Balancing Algorithms for Block-Sparse Tensor Contractions

TitleInspector-Executor Load Balancing Algorithms for Block-Sparse Tensor Contractions
Publication TypeConference Paper
Year of Publication2013
AuthorsOzog, D, Hammond, JR, Dinan, J, Balaji, P, Shende, S, Malony, AD
Conference Name2013 International Conference on Parallel Processing
Conference LocationLyon, France
Other NumbersANL/MCS-P5052-1213

Developing effective yet scalable load-balancing methods for irregular computations is critical to the successful application of simulations in a variety of disciplines at petascale and beyond. This paper explores a set of static and dynamic scheduling algorithms for block-sparse tensor contractions within the NWChem computational chemistry code for different degrees of sparsity (and therefore load imbalance). In this particular application, a relatively large amount of task information can be obtained at minimal cost, which enables the use of static partitioning techniques that take the entire task list as input. However, fully static partitioning is incapable of dealing with dynamic variation of task costs, such as from transient network contention or operating system noise, so we also consider hybrid schemes that utilize dynamic scheduling within subgroups. These two schemes, which have not been previously implemented in NWChem or its proxies (i.e. quantum chemistry mini-apps) are compared to the original centralized dynamic load-balancing algorithm as well as improved centralized scheme. In all cases, we separate the scheduling of tasks from the execution of tasks into an inspector phase and an executor phase. The impact of these methods upon the application is substantial on a large InfiniBand cluster: execution time is reduced by as much as 50% at scale. The technique is applicable to any scientific application requiring load balance where performance models or estimations of kernel execution times are available.