Model-Based Warp-Level Tiling for Image Processing Programs on GPUs

09/16/2019
by   Abhinav Jangda, et al.
0

The efficient execution of image processing pipelines on GPUs is an area of active research. The state-of-art involves 1) dividing portions of an image into overlapped tiles, where each tile can be processed by a single thread block and 2) fusing loops together to improve memory locality. However, the state-of-the-art has two limitations: 1) synchronization between all threads across thread blocks has a nontrivial cost and 2) autoscheduling algorithms use an overly simplified model of GPUs. This paper presents a new approach for optimizing image processing programs on GPUs. First, we fuse loops to form overlapped tiles that can be processed by a single warp, which allows us to use lightweight warp synchronization. Second, we introduce hybrid tiling, which is an approach that partially stores overlapped regions in thread-local registers instead of shared memory, thus increasing occupancy and providing faster access to data. Hybrid tiling leverages the warp shuffling capabilities of recent GPUs. Finally, we present an automatic loop fusion algorithm that considers several factors that affect the performance of GPU kernels. We implement these techniques in a new GPU-based backend for PolyMage, which is a DSL embedded in Python for describing image processing pipelines. Using standard benchmarks, our approach produces code that is 2.15x faster than manual schedules, 6.83x faster than Halide's GPU auto-scheduler, and 5.16x faster than autotuner on an NVIDIA GTX 1080Ti. Using a Tesla V100 GPU, our approach is 1.73x faster than manual schedules, 2.67x faster than the auto-scheduler, and 8x faster than autotuner.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/18/2016

Hybrid CPU-GPU Framework for Network Motifs

Massively parallel architectures such as the GPU are becoming increasing...
research
10/20/2011

Efficient Synchronization Primitives for GPUs

In this paper, we revisit the design of synchronization primitives---spe...
research
12/13/2020

Learning to Schedule Halide Pipelines for the GPU

We present a new algorithm to automatically generate high-performance GP...
research
06/20/2019

Performance Comparison Between OpenCV Built in CPU and GPU Functions on Image Processing Operations

Image Processing is a specialized area of Digital Signal Processing whic...
research
04/11/2020

A Study of Single and Multi-device Synchronization Methods in Nvidia GPUs

GPUs are playing an increasingly important role in general-purpose compu...
research
04/15/2013

GPU Acclerated Automated Feature Extraction from Satellite Images

The availability of large volumes of remote sensing data insists on high...
research
02/01/2020

Foreground object segmentation in RGB-D data implemented on GPU

This paper presents a GPU implementation of two foreground object segmen...

Please sign up or login with your details

Forgot password? Click here to reset