Machine Learning for CUDA+MPI Design Rules
Preprint
Abstract
We present a new strategy for automatically exploring the design space of key CUDA+MPI programs and providing design rules that discriminate slow from fast implementations. In such programs, the order of operations (e.g., GPU kernels, MPI communication) and assignment of operations to resources (e.g., GPU streams) makes the space of possible designs enormous. Systems experts have the task of redesigning and reoptimizing these programs to effectively utilize each new platform. This work provides a prototype tool to reduce that burden. In our approach, a directed acyclic graph of CUDA and MPI operations defines the design space for the program. Monte-Carlo tree search discovers regions of the design space that have large impact on the program's performance. A sequence-to-vector transformation defines features for each explored implementation, and each implementation is assigned a class label according to its relative performance. A decision tree is trained on the features and labels to produce design rules for each class; these rules can be used by systems experts to guide their implementations. We demonstrate our strategy using a key kernel from scientific computing -- sparse-matrix vector multiplication -- on a platform with multiple MPI ranks and GPU streams.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Customized Monte Carlo Tree Search for LLVM/Polly's Composable Loop Optimization Transformations2021
- A multi-objective Monte Carlo tree search for forest harvest schedulingEuropean Journal of Operational Research, 2020
- SciPy 1.0: fundamental algorithms for scientific computing in PythonNature Methods, 2020
- Learning to optimize halide with tree search and random programsACM Transactions on Graphics, 2019
- Energy prediction of CUDA application instances using dynamic regression modelsComputing, 2017
- Autotuning algorithmic choice for input sensitivityACM SIGPLAN Notices, 2015
- Automatic and Portable Mapping of Data Parallel Programs to OpenCL for GPU-Based Heterogeneous SystemsACM Transactions on Architecture and Code Optimization, 2014
- Automatic feature generation for machine learning--based optimising compilationACM Transactions on Architecture and Code Optimization, 2014
- Adaptive reduction parallelization techniques2014
- The Expected-Outcome Model of Two-Player Games1991