Optimizing Data Warehousing Applications for GPUs using Kernel Fusion/Fission

Optimizing Data Warehousing Applications for GPUs using Kernel Fusion/Fission

Haicheng Wu , Gregory Diamos, Ashwin Lele, Jin Wang, Srihari Cadambi, Sudhakar Yalamanchili, and Srimat Chakradhar. “Optimizing Data Warehousing Applications for GPUs using Kernel Fusion/Fission.” Workshop on Multicore and GPU Programming Models, Languages and Compilers. May 2012.

Abstract

Data warehousing applications represent an emergent application arena that requires the processing of relational queries and computations over massive amounts of data. Modern general purpose GPUs are high core count architectures that potentially offer substantial improvements in throughput for these applications. However, there are significant challenges that arise due to the overheads of data movement through the memory hierarchy and between the GPU and host CPU. This paper proposes a set of compiler optimizations to address these challenges.

Inspired in part by loop fusion/fission optimizations in the scientific computing community, we propose kernel fusion and kernel fission. Kernel fusion fuses the code bodies of two GPU kernels to i) eliminate redundant operations across dependent kernels, ii) reduce data movement between GPU registers and GPU memory, iii) reduce data movement between GPU memory and CPU memory, and iv) improve spatial and temporal locality of memory references. Kernel fission partitions a kernel into segments such that segment computations and data transfers between the GPU and host CPU can be overlapped. Fusion and fission can also be applied concurrently to a set of kernels. We empirically evaluate the benefits of fusion/fission on relational algebra operators drawn from the TPC-H benchmark suite. All kernels are implemented in CUDA and the experiments are performed with NVIDIA Fermi GPUs. In general, we observed data throughput improvements ranging from 13.1% to 41.4% for the SELECT operator and queries Q1 and Q21 in the TPC-H benchmark suite. We present key insights, lessons learned, and opportunities for further improvements.

Download

Optimizing Data Warehousing Applications for GPUs using Kernel Fusion/Fission [PDF]

Citation

@inproceedings{Wu:2012:ODW:2357488.2357703,
author = {Wu, Haicheng and Diamos, Gregory and Wang, Jin and Cadambi, Srihari and Yalamanchili, Sudhakar and Chakradhar, Srimat},
title = {Optimizing Data Warehousing Applications for GPUs Using Kernel Fusion/Fission},
booktitle = {Proceedings of the 2012 IEEE 26th International Parallel and Distributed Processing Symposium Workshops \& PhD Forum},
series = {IPDPSW ’12},
year = {2012},
isbn = {978-0-7695-4676-6},
pages = {2433–2442},
numpages = {10},
url = {http://dx.doi.org.prx.library.gatech.edu/10.1109/IPDPSW.2012.300},
doi = {10.1109/IPDPSW.2012.300},
acmid = {2357703},
publisher = {IEEE Computer Society},
address = {Washington, DC, USA},
keywords = {data warehousing, relational algebra, GPU, compiler, optimization},
}