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

Serial/AVX StdMat implementation of the advection block operator. More...

#include <LibUtilities/SimdLib/tinysimd.hpp>
#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>
#include <LibUtilities/LinearAlgebra/NekBlas/libXSMMDispatchWrapper.hpp>
#include <MultiRegions/ElmtOps/Advection/AdvectionBlockOp.hpp>
#include <MultiRegions/ElmtOps/Advection/AdvectionBlockOpSerialAVXStdMatKernels.hpp>

Go to the source code of this file.

Classes

class  Nektar::MultiRegions::detail::AdvectionBlockOpImpl< ExecSpace, Implementation, TData >
 Device StdMat advection block operator: dense standard-region derivative matrices through the vendor BLAS, followed by a pointwise derivative-factor and velocity kernel. More...
 

Namespaces

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

Detailed Description

Serial/AVX StdMat implementation of the advection block operator.

The StdMat strategy evaluates the reference-space derivatives of the input by multiplying with the dense standard-region physical-derivative matrices, one libxsmm GEMM per direction and element group; a pointwise kernel then applies the geometric derivative factors and the dot product with the advection velocity (see AdvectionBlockOpSerialAVXStdMatKernels.hpp). On the AVX execution space each SIMD lane owns one element of a group, so the GEMM's left operand is the lane-interleaved batch of element data; on Serial the SIMD type is the width-one tinysimd::scalarT wrapper and the group size is one.

This header provides the definition of detail::AdvectionBlockOpImpl for the Serial and AVX execution spaces with the StdMat implementation tag. The sum-factorised Serial/AVX definition lives in AdvectionBlockOpSerialAVXSumFac.hpp and the Device definitions in AdvectionBlockOpDeviceStdMat.hpp and AdvectionBlockOpDeviceSumFac.hpp; the class template name is shared, and each CMake-generated registration translation unit includes exactly one of these headers.

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 AdvectionOp.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 AdvectionBlockOpSerialAVXStdMat.hpp.