Efficient Irregular Wavefront Propagation Algorithms on Hybrid CPU-GPU Machines
Preprint
Abstract
In this paper, we address the problem of efficient execution of a computation pattern, referred to here as the irregular wavefront propagation pattern (IWPP), on hybrid systems with multiple CPUs and GPUs. The IWPP is common in several image processing operations. In the IWPP, data elements in the wavefront propagate waves to their neighboring elements on a grid if a propagation condition is satisfied. Elements receiving the propagated waves become part of the wavefront. This pattern results in irregular data accesses and computations. We develop and evaluate strategies for efficient computation and propagation of wavefronts using a multi-level queue structure. This queue structure improves the utilization of fast memories in a GPU and reduces synchronization overheads. We also develop a tile-based parallelization strategy to support execution on multiple CPUs and GPUs. We evaluate our approaches on a state-of-the-art GPU accelerated machine (equipped with 3 GPUs and 2 multicore CPUs) using the IWPP implementations of two widely used image processing operations: morphological reconstruction and euclidean distance transform. Our results show significant performance improvements on GPUs. The use of multiple CPUs and GPUs cooperatively attains speedups of 50x and 85x with respect to single core CPU executions for morphological reconstruction and euclidean distance transform, respectively.Keywords
All Related Versions
This publication has 16 references indexed in Scilit:
- Challenges of medical image processingComputer Science - Research and Development, 2010
- Efficient morphological reconstruction: a downhill filterPattern Recognition Letters, 2004
- Fast Euclidean Distance Transformation by Propagation Using Multiple NeighborhoodsComputer Vision and Image Understanding, 1999
- OpenMP: an industry standard API for shared-memory programmingIEEE Computational Science and Engineering, 1998
- Morphological grayscale reconstruction in image analysis: applications and efficient algorithmsIEEE Transactions on Image Processing, 1993
- The vector distance transform in two and three dimensionsCVGIP: Graphical Models and Image Processing, 1992
- Watersheds in digital spaces: an efficient algorithm based on immersion simulationsIEEE Transactions on Pattern Analysis and Machine Intelligence, 1991
- Loops skewing: The wavefront method revisitedInternational Journal of Parallel Programming, 1986
- Euclidean distance mappingComputer Graphics and Image Processing, 1980
- The relative neighbourhood graph of a finite planar setPattern Recognition, 1980