Skip to main content
QUICK REVIEW

[Paper Review] A thread-parallel algorithm for anisotropic mesh adaptation

Georgios Rokos, Gerard Gorman|arXiv (Cornell University)|Aug 12, 2013
Advanced Data Storage TechnologiesComputer Science5 citations
TL;DR

This paper presents a thread-parallel algorithm for anisotropic mesh adaptation using OpenMP, leveraging task coloring and deferred updates to enable scalable intra-node parallelism on multi-core systems. It achieves 60% parallel efficiency on 8 cores and 40% on a 16-core ccNUMA system, demonstrating practical scalability despite complex data dependencies and load imbalances in mesh adaptation operations.

ABSTRACT

Anisotropic mesh adaptation is a powerful way to directly minimise the computational cost of mesh based simulation. It is particularly important for multi-scale problems where the required number of floating-point operations can be reduced by orders of magnitude relative to more traditional static mesh approaches. Increasingly, finite element and finite volume codes are being optimised for modern multi-core architectures. Typically, decomposition methods implemented through the Message Passing Interface (MPI) are applied for inter-node parallelisation, while a threaded programming model, such as OpenMP, is used for intra-node parallelisation. Inter-node parallelism for mesh adaptivity has been successfully implemented by a number of groups. However, thread-level parallelism is significantly more challenging because the underlying data structures are extensively modified during mesh adaptation and a greater degree of parallelism must be realised. In this paper we describe a new thread-parallel algorithm for anisotropic mesh adaptation algorithms. For each of the mesh optimisation phases (refinement, coarsening, swapping and smoothing) we describe how independent sets of tasks are defined. We show how a deferred updates strategy can be used to update the mesh data structures in parallel and without data contention. We show that despite the complex nature of mesh adaptation and inherent load imbalances in the mesh adaptivity, a parallel efficiency of 60% is achieved on an 8 core Intel Xeon Sandybridge, and a 40% parallel efficiency is achieved using 16 cores in a 2 socket Intel Xeon Sandybridge ccNUMA system.

Motivation & Objective

  • To address the challenge of achieving efficient thread-level parallelism in anisotropic mesh adaptation, which is complicated by dynamic data structures and high load imbalance.
  • To enable scalable intra-node parallelism on modern multi-core architectures for finite element and finite volume simulations.
  • To develop a thread-parallel algorithm that maintains mesh consistency and avoids data contention during refinement, coarsening, swapping, and smoothing phases.
  • To evaluate the performance and scalability of the proposed algorithm on shared-memory systems with varying core counts and NUMA topologies.

Proposed method

  • The algorithm uses graph coloring to identify maximal independent sets of mesh operations (refinement, coarsening, swapping, smoothing), enabling concurrent execution.
  • A deferred updates strategy is employed, where mesh modifications are collected in worklists and applied in bulk after parallel processing, minimizing serialization and data contention.
  • Each mesh adaptation phase is parallelized using OpenMP, with task scheduling based on color classes to ensure data independence.
  • The method supports dynamic load balancing by processing independent sets in parallel, reducing synchronization overhead.
  • The algorithm is implemented for 2D unstructured meshes and uses a metric-based error estimator to guide adaptation.
  • Thread-core affinity is used to optimize memory access patterns and reduce NUMA effects in multi-socket systems.

Experimental results

Research questions

  • RQ1Can anisotropic mesh adaptation be effectively parallelized using a thread-based model like OpenMP, despite complex data dependencies and irregular workloads?
  • RQ2How can data contention and serialization overhead be minimized during mesh updates in a shared-memory environment?
  • RQ3What role does task coloring play in exposing sufficient parallelism for mesh adaptation operations on multi-core systems?
  • RQ4How does the performance scale across increasing core counts, especially in a ccNUMA architecture with non-uniform memory access?
  • RQ5To what extent can deferred updates improve scalability in mesh adaptation without compromising mesh quality or consistency?

Key findings

  • The algorithm achieves 60% parallel efficiency on an 8-core Intel Xeon Sandybridge system, demonstrating strong scalability for mesh adaptation phases.
  • On a 16-core ccNUMA system, the parallel efficiency drops to 40%, primarily due to NUMA effects and increased synchronization overhead.
  • Despite the irregular and dynamic nature of mesh adaptation, the use of independent task sets via coloring enables effective load distribution and high concurrency.
  • Mesh smoothing, which involves fewer data writes, still achieves good scaling, indicating the method is effective even for computationally light operations.
  • The histogram of element quality shows that only 10 out of 26 million elements had a quality below 0.4, with the worst being 0.34, confirming high mesh quality after adaptation.
  • The method successfully maintains mesh consistency and avoids data races through deferred updates and worklist-based synchronization.

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.