|
Nektar++
|
Serial/AVX sum-factorised (SumFac) implementation of the per-block weak Laplacian operator. More...
#include <LibUtilities/SimdLib/tinysimd.hpp>#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>#include <MultiRegions/ElmtOps/Laplacian/LaplacianBlockOp.hpp>#include <MultiRegions/ElmtOps/Laplacian/LaplacianBlockOpSerialAVXSumFacKernels.hpp>Go to the source code of this file.
Classes | |
| class | Nektar::MultiRegions::detail::LaplacianBlockOpImpl< ExecSpace, Implementation, TData > |
| Device StdMat block implementation of the weak Laplacian operator: the three-stage matrix-matrix decomposition issued through strided-batched GEMMs on the block's device stream. More... | |
Namespaces | |
| namespace | Nektar |
| namespace | Nektar::MultiRegions |
| namespace | Nektar::MultiRegions::detail |
Macros | |
| #define | NEKTAR_BLOCKOP_SWITCH_CODE |
Serial/AVX sum-factorised (SumFac) implementation of the per-block weak Laplacian operator.
Instead of the dense standard-region matrices of the StdMat path, the operator is assembled from the one-dimensional tensor-product stages of the simpler families – the backward transform (BwdTransKernelLauncher), the tensor derivative (PhysDerivTensor{1,2,3}DKernel), the diffusion metric of the Laplacian family (DiffusionCoeffwithWJ{1,2,3}DKernel), the summed transposed derivative (SumDerivTensor{1,2,3}DKernel) and the inner product (IProductWRTBaseKernelLauncher). The LaplacianKernelLauncher overloads in LaplacianBlockOpSerialAVXSumFacKernels.hpp string the stages together for one element group; each SIMD lane owns one element, so a group of simd_t::width elements advances in lock-step (width one on the Serial execution space). Stages 1 and 5, and 2 and 4, are transposes of one another, which is what makes the assembled operator symmetric.
v_Apply() dispatches on the block's shape type to the ShapeBlock() specialisations, whose definitions CMake generates from LibUtilities/BasicUtils/Switch/BlockOpShapeBlock.cpp.in, one translation unit per shape: each wraps OperatorND() in a switch over the element sizes so that compile-time constants reach the kernels, falling back to a runtime-sized call for other sizes.
This header provides the definition of detail::LaplacianBlockOpImpl for the Serial and AVX execution spaces with the SumFac implementation tag; see LaplacianBlockOpSerialAVXStdMat.hpp for the StdMat sibling, and LaplacianBlockOp.hpp for the one-definition-per-translation-unit scheme.
Definition in file LaplacianBlockOpSerialAVXSumFac.hpp.
| #define NEKTAR_BLOCKOP_SWITCH_CODE |
Definition at line 90 of file LaplacianBlockOpSerialAVXSumFac.hpp.