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

Device sum-factorised implementations of the per-block divergence, serving both the SumFac and the SumFacTOP strategy. More...

#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>
#include <MultiRegions/ElmtOps/Divergence/DivergenceBlockOp.hpp>
#include <MultiRegions/ElmtOps/Divergence/DivergenceBlockOpDeviceSumFacKernels.hpp>
#include <MultiRegions/ElmtOps/Divergence/DivergenceBlockOpDeviceSumFacTOPKernels.hpp>

Go to the source code of this file.

Classes

class  Nektar::MultiRegions::detail::DivergenceBlockOpImpl< ExecSpace, Implementation, TData >
 Device StdMat implementation of DivergenceBlockOp: one strided-batched BLAS GEMM forming every reference-direction derivative of every component of the block, followed by one derivative-factor contraction per component accumulating into a single output component. More...
 

Namespaces

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

Macros

#define NEKTAR_BLOCKOP_SWITCH_1DCOORDS
 

Detailed Description

Device sum-factorised implementations of the per-block divergence, serving both the SumFac and the SumFacTOP strategy.

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) DivergenceKernelLauncher overloads resolve:

v_Apply() dispatches on the block's shape type to the ShapeBlock() specialisations CMake generates from BlockOpShapeBlock.cpp.in; see DivergenceOp.hpp for what the operator computes.

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 DivergenceOp.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 DivergenceBlockOpDeviceSumFac.hpp.

Macro Definition Documentation

◆ NEKTAR_BLOCKOP_SWITCH_1DCOORDS

#define NEKTAR_BLOCKOP_SWITCH_1DCOORDS

Definition at line 78 of file DivergenceBlockOpDeviceSumFac.hpp.