Skip to main content
QUICK REVIEW

[Paper Review] A Novel Implementation of QuickHull Algorithm on the GPU

Jiayin Zhang, Gang Mei|arXiv (Cornell University)|Jan 20, 2015
Computational Geometry and Mesh GenerationComputer Science20 references5 citations
TL;DR

This paper presents a novel GPU-accelerated implementation of the 2D QuickHull algorithm using Thrust library primitives to efficiently parallelize the Divide-and-Conquer approach. By operating directly on input arrays and leveraging segmented scan, parallel sort, and reduction, the method achieves up to 10.98x speedup over CPU-based Qhull and computes the convex hull of 20 million points in approximately 0.2 seconds.

ABSTRACT

We present a novel GPU-accelerated implementation of the QuickHull algorihtm for calculating convex hulls of planar point sets. We also describe a practical solution to demonstrate how to efficiently implement a typical Divide-and-Conquer algorithm on the GPU. We highly utilize the parallel primitives provided by the library Thrust such as the parallel segmented scan for better efficiency and simplicity. To evaluate the performance of our implementation, we carry out four groups of experimental tests using two groups of point sets in two modes on the GPU K20c. Experimental results indicate that: our implementation can achieve the speedups of up to 10.98x over the state-of-art CPU-based convex hull implementation Qhull [16]. In addition, our implementation can find the convex hull of 20M points in about 0.2 seconds.

Motivation & Objective

  • To develop an efficient GPU implementation of the QuickHull algorithm for 2D convex hull computation.
  • To demonstrate a practical approach for parallelizing Divide-and-Conquer algorithms on the GPU using high-level primitives.
  • To improve performance over existing CPU and GPU implementations through optimized memory access and algorithmic structure.
  • To evaluate the impact of preprocessing on computational efficiency and memory usage.

Proposed method

  • The algorithm operates directly on input coordinate arrays without data duplication, maintaining data in segments to represent subsets.
  • After splitting points into upper and lower subsets, each subset is sorted by x-coordinate to form monotone chains.
  • The method uses Thrust library primitives—parallel segmented scan, parallel sort, reduction, and partitioning—for efficient computation.
  • Segments are updated by identifying the farthest point from the current hull edge, creating new segments without permuting data.
  • The implementation retains the first point of each segment to preserve extreme points, avoiding complete segment removal.
  • A preprocessing step discards interior points early, reducing memory usage and accelerating subsequent steps.

Experimental results

Research questions

  • RQ1How can the Divide-and-Conquer structure of QuickHull be effectively mapped to GPU-parallel execution using segment-based data structures?
  • RQ2What performance gains can be achieved by using high-level GPU libraries like Thrust compared to low-level CUDA or CUDPP?
  • RQ3How does preprocessing affect the runtime and memory footprint of GPU-based convex hull computation?
  • RQ4What is the computational bottleneck in the GPU-parallelized QuickHull pipeline?

Key findings

  • The proposed GPU implementation achieves a maximum speedup of 10.98x over the state-of-the-art CPU-based Qhull library.
  • The algorithm computes the convex hull of 20 million points in approximately 0.2 seconds on the K20c GPU.
  • Preprocessing significantly improves performance by discarding over 50% of input points early, reducing memory allocation and computation.
  • The 2nd step (recursive hull computation) is the most computationally expensive, indicating it as the primary performance bottleneck.
  • The use of Thrust library enables concise, readable code with high performance, outperforming implementations using CUDPP in practical deployment.
  • Memory usage is substantially reduced after preprocessing, as only less than 50% of the original points remain for processing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.