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

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

#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>
#include <LibUtilities/LinearAlgebra/NekBlas/NekBlas.hpp>
#include <MultiRegions/ElmtOps/Laplacian/LaplacianBlockOp.hpp>
#include <MultiRegions/ElmtOps/Laplacian/LaplacianBlockOpDeviceStdMatKernels.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

Device standard-matrix (StdMat) implementation of the per-block weak Laplacian operator.

This header provides the definition of detail::LaplacianBlockOpImpl for the Device execution space 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 in device memory:

  1. Deriv on the input coefficients to form the reference derivatives;
  2. ApplyMetricKernel to contract the reference derivatives with the geometry and diffusion tensor;
  3. IProductWRTDerivBase on the contracted reference derivatives to form the weak Laplacian term, summing the directional contributions into the output, which is overwritten.

All matrix products are issued through NekBlas::GemmStridedBatched on the block's stream.

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 LaplacianBlockOpDeviceStdMat.hpp.