2012 · 460 citations · 35 references
ComputingComputer EngineeringComputer ScienceCompilersComputer VisionParallel ComputingGraphics Processing Unit ArchitectureGraphics Processing Unit ComputingGraphics Processing UnitsHardware AccelerationKernel ProgrammingPerformance TuningBelief PropagationConfiguration OptimizationConvolutionConvolution KernelsCuda ProgrammingKernel OptimizationLoop UnrollingOpencl Programming
Determining the best set of optimizations for GPU kernels is challenging due to large configuration spaces, multiple kernels per application, hardware changes, and the potential performance loss of high‑level languages compared to low‑level ones. The study aims to improve high‑level language performance on GPUs by applying auto‑tuning. We perform auto‑tuning over a large optimization space—loop permutation, unrolling, tiling, and parallelization choices—on GPU kernels, evaluating on convolution kernels, PolyBench, and a belief‑propagation stereo vision implementation. Auto‑tuned HMPP implementations are significantly faster than the default HMPP and can match or exceed manually coded CUDA/OpenCL performance.
Determining the best set of optimizations to apply to a kernel to be executed on the graphics processing unit (GPU) is a challenging problem. There are large sets of possible optimization configurations that can be applied, and many applications have multiple kernels. Each kernel may require a specific configuration to achieve the best performance, and moving an application to new hardware often requires a new optimization configuration for each kernel. In this work, we apply optimizations to GPU code using HMPP, a high-level directive-based language and source-to-source compiler that can generate CUDA / OpenCL code. However, programming with high-level languages may mean a loss of performance compared to using low-level languages. Our work shows that it is possible to improve the performance of a high-level language by using auto-tuning. We perform auto-tuning on a large optimization space on GPU kernels, focusing on loop permutation, loop unrolling, tiling, and specifying which loop(s) to parallelize, and show results on convolution kernels, codes in the PolyBench suite, and an implementation of belief propagation for stereo vision. The results show that our auto-tuned HMPP-generated implementations are significantly faster than the default HMPP implementation and can meet or exceed the performance of manually coded CUDA / OpenCL implementations.
35
SPIRAL: Code Generation for DSP Transforms
Markus Püschel, José M. F. Moura, Jeremy Johnson et al. · Proceedings of the IEEE · 2005 · 829 citations
Sparse matrix solvers on the GPU
Jeff Bolz, Ian Farmer, Eitan Grinspun et al. · 2005 · 749 citations