Parallel chen-han (PCH) algorithm for discrete geodesics

Xiang Ying, Shi-Qing Xin, Ying He

TL;DR

This paper introduces the Parallel Chen-Han (PCH) algorithm, a novel GPU-accelerated method for computing exact geodesic distances on triangle meshes. By cleverly dividing the sequential Chen-Han algorithm into parallelizable phases and managing window propagation efficiently, PCH achieves an order-of-magnitude speedup over existing state-of-the-art methods, making exact geodesic computations practical for large-scale models.

What Problem Does This Paper Address?

Calculating the shortest path between two points on a 3D surface (geodesic distance) is fundamental in computer graphics and geometry processing. While exact algorithms exist, they are computationally expensive, limiting their use in real-time applications or on complex models with millions of polygons. Existing parallel approaches often sacrifice accuracy or require surface parameterization into a regular grid, which is difficult for arbitrary shapes. This paper tackles the challenge of achieving exact geodesic computations on complex triangle meshes in a parallel and efficient manner, specifically targeting GPU acceleration.

Methods

The core innovation is the parallelization of the Chen-Han (CH) discrete geodesic algorithm. The original CH algorithm, while having linear memory complexity, suffers from sequential dependencies in its window propagation mechanism. PCH addresses this by:

  • Phase Decomposition: The sequential CH algorithm is broken down into four distinct phases: window selection, window propagation, data organization, and event processing. These phases are designed to minimize data dependencies, allowing operations within each phase to be executed in parallel.
  • Parallel Window Propagation: Instead of a strict ordering or tightly coupled tree structure, PCH uses a "loosely organized" approach for windows. This allows a large number of windows to be propagated simultaneously and independently across GPU threads.
  • Approximate K-Selection: To manage the number of windows and leverage GPU parallelism, an approximate k-selection strategy is employed. This efficiently selects the k nearest windows to the source, rather than a precise, computationally expensive sort.
  • Delayed Updates & Event Processing: To avoid data conflicts when multiple threads try to update the same vertex or angle distance, PCH uses a delayed update strategy. Updates are recorded as events and processed in a separate, parallelizable phase after all window propagations are complete. This is crucial for maintaining data consistency without resorting to slow mutexes or atomic operations.
  • Memory Pool Management: A GPU memory pool is used to store active windows, allowing for efficient distribution to GPU threads and minimizing memory fragmentation.

Datasets

The paper evaluates its algorithm on a variety of 3D models with varying complexities, ranging from the "Bunny" (144K faces) to the "Dragon" (4 million faces). These models are standard benchmarks in the field and are used to demonstrate the algorithm's performance across different scales. No new benchmarks or datasets were introduced.

Key Insights and Ideas

  • Parallelizing "Sequential" Algorithms: The paper demonstrates that even algorithms with seemingly inherent sequential dependencies can be effectively parallelized by carefully decomposing them into independent phases.
  • The Power of Loosely Coupled Data Structures: Moving away from strict ordering (like priority queues) or rigid structures (like trees) for managing intermediate data (windows) unlocks significant parallelism.
  • Delayed Updates for Conflict-Free Parallelism: The delayed update strategy is a clever way to handle concurrent writes to shared data without the overhead of traditional synchronization primitives, which are often bottlenecks in GPU computing.
  • Approximate Selection for Performance: The insight that an approximate k-selection can provide sufficient input for parallel processing without sacrificing the exactness of the final geodesic distance is key to achieving high performance.
  • GPU Performance Scales with GFLOPS: The experimental results show a strong correlation between the algorithm's speedup and the GPU's double-precision floating-point performance, indicating its suitability for modern hardware.

Key Results

  • Order-of-Magnitude Speedup: PCH achieves an order-of-magnitude improvement in execution time compared to state-of-the-art sequential algorithms on large-scale models (e.g., computing exact geodesic distance on a 1.8-million-face model in 11 seconds).
  • Scalability: The performance scales well with mesh complexity and GPU capabilities.
  • Comparable Window Count: The number of windows generated by PCH is only slightly higher than that of the ICH algorithm, which uses a priority queue for window management.
  • Linear Memory Complexity: Similar to CH and ICH, PCH maintains linear memory complexity, making it suitable for large models.
  • Flexibility: The algorithm naturally supports multiple-source-all-destination geodesic computations.

Limitations and Future Work

  • Approximate K-Selection Performance: While the final geodesic distance is exact, the selection of windows is approximate. The paper notes that this approximation is effective but doesn't delve into theoretical bounds for the approximation error in window selection itself.
  • CPU PCH Performance: The CPU implementation of PCH is observed to be slightly slower (5-30%) than the ICH algorithm due to the lack of strict window ordering.
  • Future Work:
    • Investigating more effective window filtering techniques to further reduce the total number of windows.
  • Leveraging PCH's multi-source capability for improved geodesic Voronoi diagram computation.
  • Exploring applications in time-critical domains that require extensive geodesic computations.

Summary updated

BibTeX
@article{ying2014parallel,
  author = {Xiang Ying and Shi-Qing Xin and Ying He},
  title = {{Parallel chen-han (PCH) algorithm for discrete geodesics}},
  journal = {ACM Trans. Graphics},
  year = {2014},
  url = {https://openreview.net/forum?id=syeKJSbpilc},
}
Figure