Nektar++
Loading...
Searching...
No Matches
Namespaces | Functions
MassBlockOpSerialAVXSumFacKernels.hpp File Reference

Kernel launchers of the Serial/AVX sum-factorised mass operator: the two composed families' launchers strung together, one element per SIMD lane. More...

#include <MultiRegions/ElmtOps/BwdTrans/BwdTransBlockOpSerialAVXSumFacKernels.hpp>
#include <MultiRegions/ElmtOps/IProductWRTBase/IProductWRTBaseBlockOpSerialAVXSumFacKernels.hpp>
#include <MultiRegions/ElmtOps/ElmtHelper.hpp>

Go to the source code of this file.

Namespaces

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

Functions

template<LibUtilities::ShapeType SHAPE_TYPE, bool SCALE, bool APPEND, bool DEFORMED, typename TSizeParameter1D , typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::MassKernelLauncher (const TSizeParameter1D sizeParam1D, const bool isModified, const typename simd_type::scalarType *basis0, const typename simd_type::scalarType *w0, const simd_type *NtoM, const simd_type *NtoMTrans, const simd_type *jac, simd_type *bwd, const simd_type *in, simd_type *out, typename simd_type::scalarType scale=1.0)
 1D launcher: backward transform then inner product with the basis for one element group of segments.
 
template<LibUtilities::ShapeType SHAPE_TYPE, bool SCALE, bool APPEND, bool DEFORMED, typename TSizeParameter2D , typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::MassKernelLauncher (const TSizeParameter2D sizeParam2D, const bool isModified, const typename simd_type::scalarType *basis0, const typename simd_type::scalarType *basis1, const typename simd_type::scalarType *w0, const typename simd_type::scalarType *w1, const simd_type *NtoM, const simd_type *NtoMTrans, const simd_type *jac, simd_type *wsp0, simd_type *bwd, const simd_type *in, simd_type *out, typename simd_type::scalarType scale=1.0)
 2D launcher: backward transform then inner product with the basis for one element group of quadrilaterals or (nodal) triangles.
 
template<LibUtilities::ShapeType SHAPE_TYPE, bool SCALE, bool APPEND, bool DEFORMED, typename TSizeParameter3D , typename simd_type >
static NEK_FORCE_INLINE void Nektar::MultiRegions::detail::MassKernelLauncher (const TSizeParameter3D sizeParam3D, const bool isModified, const typename simd_type::scalarType *basis0, const typename simd_type::scalarType *basis1, const typename simd_type::scalarType *basis2, const typename simd_type::scalarType *w0, const typename simd_type::scalarType *w1, const typename simd_type::scalarType *w2, const simd_type *NtoM, const simd_type *NtoMTrans, const simd_type *jac, simd_type *wsp0, simd_type *wsp1, simd_type *wsp2, simd_type *bwd, const simd_type *in, simd_type *out, typename simd_type::scalarType scale=1.0)
 3D launcher: backward transform then inner product with the basis for one element group of hexahedra, (nodal) tetrahedra, (nodal) prisms or pyramids.
 

Detailed Description

Kernel launchers of the Serial/AVX sum-factorised mass operator: the two composed families' launchers strung together, one element per SIMD lane.

The mass operator has no sum-factorised shape kernels of its own on this execution space. The MassKernelLauncher overloads below – one per dimension, selected by the type of the size parameter – run, for one element group, BwdTransKernelLauncher (BwdTransBlockOpSerialAVXSumFacKernels.hpp) into the physical-value buffer and then IProductWRTBaseKernelLauncher (IProductWRTBaseBlockOpSerialAVXSumFacKernels.hpp) from that buffer into the output, in its form with the quadrature weights and the Jacobians. The transform is instantiated with APPEND false; SCALE and APPEND are passed to the inner product. Both launchers stage their directional intermediate sums in the same workspaces, which the block implementation (MassBlockOpSerialAVXSumFac.hpp) sizes to the larger of the two families' workspace queries, pulled in through the two kernel headers.

Definition in file MassBlockOpSerialAVXSumFacKernels.hpp.