Nektar++
Loading...
Searching...
No Matches
Classes | Namespaces
LaplacianBlockOpSerialAVXStdMat.hpp File Reference

Serial/AVX standard-matrix (StdMat) implementation of the per-block weak Laplacian operator. More...

#include <LibUtilities/SimdLib/tinysimd.hpp>
#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>
#include <LibUtilities/LinearAlgebra/NekBlas/libXSMMDispatchWrapper.hpp>
#include <MultiRegions/ElmtOps/Laplacian/LaplacianBlockOp.hpp>
#include <MultiRegions/ElmtOps/Laplacian/LaplacianBlockOpSerialAVXStdMatKernels.hpp>

Go to the source code of this file.

Classes

class  Nektar::MultiRegions::detail::LaplacianBlockOpImpl< ExecSpace, Implementation, TData >
 Device StdMat block implementation of the weak Laplacian operator: the three-stage matrix-matrix decomposition issued through strided-batched GEMMs on the block's device stream. More...
 

Namespaces

namespace  Nektar
 
namespace  Nektar::MultiRegions
 
namespace  Nektar::MultiRegions::detail
 

Detailed Description

Serial/AVX standard-matrix (StdMat) implementation of the per-block weak Laplacian operator.

This header provides the definition of detail::LaplacianBlockOpImpl for the Serial and AVX execution spaces with the StdMat implementation tag; see LaplacianBlockOp.hpp for the interface it implements and LaplacianOp.hpp for the registration scheme.

The operator is decomposed into three stages against standard-region matrices:

  1. Deriv on the input coefficients to form the reference derivatives \(\partial u/\partial \xi_d\);
  2. ApplyMetricKernel to contract the reference derivatives with the geometry and diffusion tensor (forming \(J \mathbf{G} \nabla_\xi u\));
  3. IProductWRTDerivBase on the contracted reference derivatives to form the weak Laplacian term, summing the directional contributions into the output, which is overwritten.

The standard-region matrices are fetched from the data warehouse and transposed so that the inner loop can be issued through LibxsmmDispatchWrapper, which evaluates the matrix products across the simd_t::width SIMD lanes of each element group.

Note
CMake includes this header into the registration translation units it generates for this operator, execution space and implementation; it should not normally be included by any other translation unit. Other code goes through LaplacianOp.hpp and the operator factory: including this header directly instantiates the whole template set in that translation unit, which is what the generated sources exist to avoid.

Definition in file LaplacianBlockOpSerialAVXStdMat.hpp.