各向异性网格自适应的线程并行算法
A thread-parallel algorithm for anisotropic mesh adaptation
摘要:
各向异性网格自适应是直接最小化基于网格的仿真的计算成本的有力方法。这是特别重要的多尺度问题,所需的浮点运算的数量可以减少数量级相对于更传统的静态网格方法。有限元和有限体积代码正越来越多地针对现代多核架构进行优化。通常,通过消息传递接口(MPI)实现的分解方法用于节点间并行化,而线程编程模型(如OpenMP)用于节点内并行化。网格自适应的节点间并行已经成功地实现了一些团体。然而,线程级的并行性是更具有挑战性的,因为底层的数据结构广泛修改期间,网格适应和更大程度的并行性必须实现。在本文中,我们描述了一个新的线程并行算法的各向异性网格自适应算法。对于每个网格优化阶段(细化,粗化,交换和平滑),我们描述了如何定义独立的任务集。我们展示了如何延迟更新策略可以用来更新网格数据结构并行,没有数据争用。我们表明,尽管网格自适应性和固有的负载不平衡的网格自适应性的复杂性,60%的并行效率是在8核英特尔至强Sandybridge上实现的,40%的并行效率是在2插槽英特尔至强Sandybridge ccNUMA系统中使用16个内核实现的。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。