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

Device sum-factorised implementations of the per-block scaled physical-space interpolation, serving both the SumFac and the SumFacTOP strategy. More...

#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>
#include <MultiRegions/ElmtOps/PhysInterp1DScaled/PhysInterp1DScaledBlockOp.hpp>
#include <MultiRegions/ElmtOps/PhysInterp1DScaled/PhysInterp1DScaledBlockOpDeviceSumFacKernels.hpp>
#include <MultiRegions/ElmtOps/PhysInterp1DScaled/PhysInterp1DScaledBlockOpDeviceSumFacTOPKernels.hpp>

Go to the source code of this file.

Classes

class  Nektar::MultiRegions::detail::PhysInterp1DScaledBlockOpImpl< ExecSpace, Implementation, TData >
 Device StdMat block implementation of the scaled interpolation: the whole block's interpolation as a single strided-batched dense matrix product on the back-end BLAS. More...
 

Namespaces

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

Macros

#define NEKTAR_BLOCKOP_SWITCH_PHYSINTERP1D
 

Detailed Description

Device sum-factorised implementations of the per-block scaled physical-space interpolation, serving both the SumFac and the SumFacTOP strategy.

This one header is included by the registration 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 BwdTransKernelLauncher overloads and the workspace and shared-memory size helpers resolve:

The kernels are the backward transform's – an interpolation matrix has the layout of a 1D basis table, so interpolating point values is a backward transform whose modes are the input points. They are reached through PhysInterp1DScaledBlockOpDeviceSumFacKernels.hpp and PhysInterp1DScaledBlockOpDeviceSumFacTOPKernels.hpp, which do nothing but include the BwdTrans kernel headers. Only the tensor-product launchers are instantiated – for LibUtilities::Seg in 1D, LibUtilities::Quad in 2D and LibUtilities::Hex in 3D – whatever the block's shape, since the physical points of the collapsed shapes form a tensor-product grid in the collapsed coordinates; the generated size switch makes that choice. Their modal machinery is switched off accordingly: isModified is passed as false, no nodal-to-modal matrix is fetched (the nodToMod argument is null) and the two mode-index tables the 3D launchers take for the tetrahedra are null too. The APPEND template argument is always false; this family has no append mode.

v_Apply() dispatches on the block's shape to the ShapeBlock() specialisations, generated from the BlockOpShapeBlock.cpp.in template and the PhysInterp1D switch.

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 PhysInterp1DScaledOp.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 PhysInterp1DScaledBlockOpDeviceSumFac.hpp.

Macro Definition Documentation

◆ NEKTAR_BLOCKOP_SWITCH_PHYSINTERP1D

#define NEKTAR_BLOCKOP_SWITCH_PHYSINTERP1D

Definition at line 95 of file PhysInterp1DScaledBlockOpDeviceSumFac.hpp.