The Compadre Toolkit provides a performance portable solution for the parallel evaluation of computationally dense kernels. The toolkit specifically targets the Generalized Moving Least Squares (GMLS) approach, which requires the inversion of small dense matrices. The result is a set of weights that provide the information needed for remap or entries that constitute the rows of some globally sparse matrix.
This toolkit focuses on the 'on-node' aspects of meshless PDE solution and remap, namely the parallel construction of small dense matrices and their inversion. What it does not provide is the tools for managing fields, inverting globally sparse matrices, or neighbor search that requires orchestration over many MPI processes. This toolkit is designed to be easily dropped-in to an existing MPI (or serial) based framework for PDE solution or remap, with minimal dependencies (Kokkos and KokkosKernels).
Here is a brief overview of the GMLS framework:
Consider
where
With an optimal reconstruction
As an unconstrained
where:
-
$\tau_{\tilde{x}}(\mathbf{P}) \in \mathbb{R}^{dim(V_h)}$ is a vector with components consisting of the target functional applied to each basis function, -
$\mathbf{W} \in \mathbb{R}^{N \times N}$ is a diagonal matrix with diagonal entries consisting of$\{\omega(\lambda_i,\tau_{\tilde{x}})\}_{i=1,...,N}$ , -
$\Lambda(\mathbf{P}) \in \mathbb{R}^{N \times dim(V_h)}$ is a rectangular matrix whose$(i,j)$ entry corresponds to the application of the$i^{th}$ sampling functional applied to the$j^{th}$ basis function, - and
$\Lambda(\phi) \in \mathbb{R}^N$ is a vector consisting of the$N$ samples of the function$\phi$ .
Compadre forms and solves the GMLS problem for
As such, GMLS admits an interpretation as an automated process for generating generalized finite difference methods on unstructured point clouds. Note that the computational cost of solving the GMLS problem amounts to inverting a small linear system which may be assembled using only information from neighbors within the support of
The Compadre Toolkit is designed to efficiently assemble, factorize, and solve large batches of GMLS problems.
Details about building and using the Compadre toolkit can be found on the Wiki.
Installation of Kokkos and KokkosKernels [Either automatically configured and built, or user installation location provided]
The toolkit is documented by Doxygen. Documentation is available online or can be compiled from source. To compile from source: 1.) install doxygen software on your computer, 2.) execute '>> make doc' after having installed the Compadre Toolkit. HTML and Latex documentation will be generated in the doc/ folder, in-source.
If you write a paper using results obtained with the help of the Compadre Toolkit, please cite the following reference which is applicable to every version of the Compadre Toolkit:
@software{compadre_toolkit,
author = {Paul Kuberry and
Peter Bosler and
Nathaniel Trask},
title = {Compadre Toolkit},
month = jan,
year = 2019,
doi = {10.11578/dc.20190411.1},
url = {https://github.com/sandialabs/compadre}
}
If you are using a particular release of the Compadre Toolkit and would like to help others to reproduce your results, please cite that release specifically. A reference to the most recent release is:
@software{compadre_toolkit_v1_6_0,
author = {Paul Kuberry and
Peter Bosler and
Nathaniel Trask},
title = {Compadre Toolkit},
month = dec,
year = 2024,
publisher = {Zenodo},
version = {v1.6.0},
doi = {10.5281/zenodo.14279180},
url = {https://doi.org/10.5281/zenodo.14279180}
}
! DOI: 10.11578/dc.20190411.1
See compadre/COPYRIGHT, compadre/LICENSE, https://trilinos.github.io/license.html and individual file headers for additional information.
Contact lead developers:
- Compadre team (GitHub handle: @trilinos/Compadre)
- Paul Kuberry (GitHub handle: kuberry or pakuber@sandia.gov@sandia.gov)
The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of NTESS or the U.S. Government.