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

Device sum-factorised implementation of the per-block mass operator, serving both the SumFac and the SumFacTOP strategy. More...

#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>
#include <MultiRegions/ElmtOps/Mass/MassBlockOp.hpp>
#include <MultiRegions/ElmtOps/Mass/MassBlockOpDeviceSumFacKernels.hpp>
#include <MultiRegions/ElmtOps/Mass/MassBlockOpDeviceSumFacTOPKernels.hpp>

Go to the source code of this file.

Classes

class  Nektar::MultiRegions::detail::MassBlockOpImpl< ExecSpace, Implementation, TData >
 Device StdMat mass operator: the whole block's operation as one or two strided-batched dense matrix products on the back-end BLAS, with the Jacobian applied by a device kernel between or after them. More...
 

Namespaces

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

Macros

#define NEKTAR_BLOCKOP_SWITCH_CODE
 

Detailed Description

Device sum-factorised implementation of the per-block mass operator, serving both the SumFac and the SumFacTOP strategy.

The backward transform and the inner product with the basis are applied one coordinate direction at a time through the one-dimensional basis tables, back to back, both inside a single fused kernel launch per block.

This one header is included by the translation units CMake generates for either sum-factorisation strategy on the Device execution space; the Implementation tag selects between the two kernel families at compile time, when the enable_if-constrained kernel launchers and the workspace and shared-memory size helpers resolve:

The two strategies want different storage layouts; see the class description. v_Apply() dispatches on the block's shape type to the ShapeBlock() specialisations, which CMake generates from LibUtilities/BasicUtils/Switch/BlockOpShapeBlock.cpp.in.

See also
MassBlockOpDeviceStdMat.hpp for the dense-matrix device path.
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 MassOp.hpp and the operator factory: including this header directly instantiates the whole template set in that translation unit, which is what the generated per-shape sources exist to avoid.

Definition in file MassBlockOpDeviceSumFac.hpp.

Macro Definition Documentation

◆ NEKTAR_BLOCKOP_SWITCH_CODE

#define NEKTAR_BLOCKOP_SWITCH_CODE

Definition at line 87 of file MassBlockOpDeviceSumFac.hpp.