Abstract
dc:descriptionTensor contractions are higher dimensional analogs of matrix multiplications. They form the key kernels in many computational contexts such as high order models in quantum chemistry, deep learning, finite element methods, etc. In contrast to the wide availability of high-performance libraries for matrix multiplication on GPUs, the same is not true for tensor contractions. This dissertation introduces approaches for optimizing tensor contractions on GPUs. Tensor contractions are computationally expensive. Hence, they bound the performance of many applications. For example, in the Cluster Singles and Doubles with perturbative Triples correction (CCSD(T)) method in NWChem (a widely used computational chemistry suite), tensor contractions are used to model reasonably large molecules. Tensor contractions, on average, account for bottleneck in the CCSD(T) method. The performance of tensor contractions can be improved by minimizing the data movement volume and exploiting the hardware features. For a sequence of tensor contractions, fusion is a powerful technique to reduce the data movement. Our tensor contraction kernels for CCSD(T) reduces the data traffic and achieves up to 8x speedup over state of the art techniques. Generating efficient codes for arbitrary tensor contractions is extremely difficult -- especially for GPUs. The choice of mapping the tensor dimensions to various hardware thread dimensions such as thread blocks and warps determine the amount of data movement. The biggest challenge in choosing an efficient mapping is that the set of possible mappings is huge -- exponential with respect to the number of dimensions of the tensor. In most cases, exhaustive search and auto-tuning are prohibitively expensive. Fortunately, performance models which predict the data movement along with heuristic pruning of the search space can drastically reduce the search space. Our tensor contraction code generator can generate efficient CUDA tensor codes using a data movement model. Compared to state-of-the-art techniques, our code generator achieves an average speedup of 3x on an Nvidia Volta machine (double precision). Two distinct approaches have been developed for efficient implementation of tensor contractions: 1) TTGT (Transpose-Transpose-GEMM-Transpose) and 2) direct optimization of the nested-loop code for tensor contraction. Neither approach is consistently superior for execution of different tensor contractions on GPUs, with TTGT being faster for some contractions and problem sizes and slower for others. Further, many choices for parameters like tile size and loop permutation exist within each of these two approaches, raising the need for an effective model for dynamically choosing the best among many alternate choices. We discuss the development of an effective model for this purpose. We evaluate both classifiers and regression-based machine learning (ML) approaches and show that the enhancement of a base ML model with an analytical model for predicting data movement to/from GPU global memory is very effective in improving model accuracy. Experimental results using the contractions in the TCCG benchmark show that the use of the developed modeling approach enables consistently higher performance over state-of-the-art tensor contraction frameworks.
Degree
thesis:*- Name thesis:degree_name
- Doctor of Philosophy
- Level thesis:degree_level
- doctoral
- Discipline thesis:degree_discipline
- Computer Science and Engineering
- Grantor dc:publisher
- The Ohio State University
- Year dc:date
- 2019
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Kim, Jinsung
- Advisor dc:contributor.advisor
-
- Sadayappan, Ponnuswamy
Subjects
dc:subject × 3Rights
dc:rights- Statement dc:rights
-
- unrestricted
- This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=osu1563237825735994