Physics > Computational Physics
[Submitted on 15 Aug 2022 (v1), revised 3 Oct 2022 (this version, v2), latest version 24 Sep 2023 (v5)]
Title:An efficient hardware-aware matrix-free implementation for finite-element discretized matrix-multivector products
View PDFAbstract:The finite-element (FE) discretization of a partial differential equation usually involves the construction of a FE discretized operator and computing its action on trial FE discretized fields for the solution of a linear system of equations or eigenvalue problems and is traditionally computed using global sparse-vector multiplication modules. However, recent hardware-aware algorithms for evaluating such matrix-vector multiplications suggest that on-the-fly matrix-vector products without building and storing the cell-level dense matrices reduce both arithmetic complexity and memory footprint and are referred to as matrix-free approaches. These approaches exploit the tensor-structured nature of the FE polynomial basis for evaluating the underlying integrals and, the current state-of-the-art matrix-free implementations deal with the action of FE discretized matrix on a single vector. These are neither optimal nor readily applicable for matrix-multivector products involving a large number of vectors. We discuss a computationally efficient and scalable matrix-free implementation procedure to compute the FE discretized matrix-multivector products on multi-node CPU and GPU architectures. The accuracy and performance of our implementation is assessed on the problem of computing FE overlap (mass) matrix-multivector multiplications as a representative benchmark example, and we observe superior performance of our implementation. For instance, computational gains up to 2.9x on GPU architectures and 6x on CPU-only architectures are observed for matrix-multivector products compared to the FE cell-level matrix-multiplication approach for the case of 100 vectors. We further benchmark our performance against the matrix-free module in deal.II and speedups up to 2x are observed for multivectors on CPU-only architectures and 1.5x on GPUs.
Submission history
From: Phani Motamarri [view email][v1] Mon, 15 Aug 2022 11:44:10 UTC (4,620 KB)
[v2] Mon, 3 Oct 2022 20:16:59 UTC (4,243 KB)
[v3] Tue, 17 Jan 2023 18:12:23 UTC (3,112 KB)
[v4] Thu, 19 Jan 2023 19:02:34 UTC (3,112 KB)
[v5] Sun, 24 Sep 2023 17:15:44 UTC (8,925 KB)
Current browse context:
physics.comp-ph
Change to browse by:
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
Connected Papers (What is Connected Papers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.