[Paper Review] ArborX: A Performance Portable Geometric Search Library
ArborX is a performance-portable C++ geometric search library designed for high-performance computing (HPC) workloads, leveraging Kokkos for portability across CPUs and GPUs. It achieves competitive performance on multi-core CPUs and GPUs—surpassing state-of-the-art libraries like nanoflann and Boost.Geometry.Index—by using a highly parallelized bounding volume hierarchy (BVH) algorithm optimized for memory access and thread divergence reduction.
Searching for geometric objects that are close in space is a fundamental component of many applications. The performance of search algorithms comes to the forefront as the size of a problem increases both in terms of total object count as well as in the total number of search queries performed. Scientific applications requiring modern leadership-class supercomputers also pose an additional requirement of performance portability, i.e. being able to efficiently utilize a variety of hardware architectures. In this paper, we introduce a new open-source C++ search library, ArborX, which we have designed for modern supercomputing architectures. We examine scalable search algorithms with a focus on performance, including a highly efficient parallel bounding volume hierarchy implementation, and propose a flexible interface making it easy to integrate with existing applications. We demonstrate the performance portability of ArborX on multi-core CPUs and GPUs, and compare it to the state-of-the-art libraries such as Boost.Geometry.Index and nanoflann.
Motivation & Objective
- Address the lack of performance-portable geometric search libraries for modern HPC architectures, including CPUs and GPUs.
- Enable efficient, scalable proximity searches in scientific applications requiring exascale performance and portability.
- Design a header-only C++ library with a flexible interface to ease integration into existing HPC applications.
- Achieve high performance on diverse hardware by minimizing memory access and thread divergence in parallel implementations.
- Support future exascale systems by enabling portability across evolving architectures such as APUs and FPGAs.
Proposed method
- Implement a parallel bounding volume hierarchy (BVH) data structure using the Kokkos performance portability layer to target CPUs and GPUs.
- Optimize memory access patterns and reduce thread divergence in parallel tree traversal and construction using memory-efficient node layouts.
- Use a single interface abstraction to support both CPU and GPU execution with minimal code duplication.
- Leverage Kokkos' execution policies and memory spaces to express portable kernels across heterogeneous architectures.
- Design the library as header-only to simplify integration and enable compiler optimizations.
- Focus on low-dimensional spatial searches with static data structures, avoiding incremental updates for performance.
Experimental results
Research questions
- RQ1How can a geometric search library achieve high performance and portability across diverse HPC architectures such as multi-core CPUs and GPUs?
- RQ2What design choices in data structure and algorithm implementation enable efficient parallelism and memory access patterns in geometric search?
- RQ3How does ArborX compare in performance to established libraries like nanoflann and Boost.Geometry.Index on modern supercomputers?
- RQ4To what extent can a single interface and implementation achieve competitive performance on both CPUs and GPUs?
- RQ5What are the scalability limits of the current implementation, and how can they be addressed for exascale-scale distributed workloads?
Key findings
- ArborX achieves competitive performance to nanoflann and Boost.Geometry.Index on single-threaded CPU workloads, particularly in nearest-neighbor and spatial search operations.
- On the OLCF Summit system, a single V100 GPU outperforms the full node of 42 POWER9 CPU cores for larger problem sizes, demonstrating strong accelerator scalability.
- SMT4 mode on POWER9 CPUs yields better performance than SMT1 or SMT2 for most problem sizes, especially in larger workloads.
- The library shows significant speedup on GPU using CUDA, with performance exceeding CPU performance by up to 5.5x for spatial search and 6.44x for nearest-neighbor queries on large datasets.
- The BVH-based implementation in ArborX reduces memory access and thread divergence, contributing to high efficiency on both CPU and GPU.
- The library is extensible and well-suited for future scaling via MPI-based distributed search, though current limitations in load balancing and data distribution across nodes remain challenges.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.