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

Device StdMat implementation of the advection block operator. More...

#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>
#include <LibUtilities/LinearAlgebra/NekBlas/NekBlas.hpp>
#include <MultiRegions/ElmtOps/Advection/AdvectionBlockOp.hpp>
#include <MultiRegions/ElmtOps/Advection/AdvectionBlockOpDeviceStdMatKernels.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

Device StdMat implementation of the advection block operator.

The Device StdMat path takes two steps: the reference-space derivatives of the input are formed by multiplying with the dense standard-region physical-derivative matrices, one matrix product per reference direction, and a pointwise kernel then applies the geometric derivative factors and the dot product with the advection velocity (see AdvectionBlockOpDeviceStdMatKernels.hpp).

The products are issued as a single strided-batched GEMM through NekBlas – the vendor BLAS behind it depends on the build – covering every element, component and homogeneous mode of the block at once, so the matrices are fetched untransposed (ePhysDerivStdMat) and the block data is read as one column-major matrix: the implementation interleave width is one. All device work is issued on the block's own stream, so different blocks may overlap.

This header provides the definition of detail::AdvectionBlockOpImpl for the Device execution space with the StdMat implementation tag; the sum-factorised Device definitions live in 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 AdvectionBlockOpDeviceStdMat.hpp.