The Ohio State University
Architecture-aware Algorithm Design of Sparse Tensor/Matrix Primitives for GPUs
Abstract
dc:descriptionSparse matrix/tensor operations have been a common computational motif ina wide spectrum of domains - numerical linear algebra, graph analytics, machinelearning, health-care, etc. Sparse kernels play a key role in numerous machine learningalgorithms and the rising popularity of this domain increases the significance ofthe primitives like SpMV (Sparse Matrix-Vector Multiplication), SDDMM (SampledDense-Dense Matrix Multiplication), MF/TF(Sparse Matrix/Tensor Factorization),etc. These primitives are data-parallel and highly suitable for GPU-like architecturesthat provide massive parallelism. Real-world matrices and tensors are large-scale andhave millions of data points, which is sufficient to utilize all the cores of a GPU. Yet,a data-parallel algorithm can become the bottleneck of an application and performway below than the upper bound of the roofline model. Some common reasons arefrequent irregular global memory access, low data reuse, and imbalanced work distribution.However, efficient utilization of GPU memory hierarchy, reduced threadcommunication, increased data locality, and an even workload distribution can provideample opportunities for significant performance improvement. The challengelies in utilizing the techniques across applications and achieve an even performancein spite of the irregularity of the input matrices or tensors. In this work, we systematicallyidentify the performance bottlenecks of the important sparse algorithms andprovide optimized and high performing solutions. At the beginning of this dissertation, we explore the application of cost-effectiveML techniques in solving the format selection and performance modeling problem inthe SpMV domain. By identifying a small set of sparse matrix features to use intraining the ML models, we are able to select the best storage format and predictthe execution time of an SpMV kernel as well. Next, we optimize the SDDMM kernel,which is a key bottleneck in factor analysis and topic modeling algorithms like ALS,LDA, GaP, ALS, etc. The performance constraints are addressed by exploiting datareuse and increasing parallelism using virtual warping, multi-level tiling, and effectiveuse of on-chip memory (shared memory), etc. Rest of the following works are on theoptimization of factorization techniques of sparse matrix and tensors on GPUs. Formatrix factorization, we optimize the cyclic coordinate descent (CCD++), which isthe state-of-the-art factorization method. An efficient GPU implementation is devisedby using kernel fusion, tiling and binning. Next, we extend the optimizationof the factorization problem to higher-order data - tensor. MTTKRP (MatricizedTensor Times Khatri-Rao Products) is a key bottleneck of one of the most commontensor factorization techniques - CPD (CANDECOMP/PARAFAC decomposition).We develop new storage-efficient representations, B-CSF and HB-CSF, for tensorsthat enables high-performance and load-balanced execution of MTTKRP on GPUs.However, for a tensor with d modes, CPD requires a sequence of d tensor computations.To guarantee efficient memory access with respect to different modes, manystorage formats stored distinct representations despite d-fold space overhead. Hence,we devise MM-CSF, a compact mixed-mode representation where better performanceis achieved compared to existing solutions while utilizing a small fraction of the space.
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
-
- Nisa, Israt
- Advisor dc:contributor.advisor
-
- Sadayappan, P. (Saday)
Subjects
dc:subject × 2Rights
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=osu1563183611985656