|
Nektar++
|
Device block implementation of the lift-and-project operator, registered for SumFac and SumFacTOP. More...
#include <LibUtilities/BasicUtils/Math/MathKernels.hpp>#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>#include <LibUtilities/LinearAlgebra/NekBlas/NekBlas.hpp>#include <MultiRegions/ElmtOps/PhysLiftProject/PhysLiftProjectBlockOp.hpp>#include <MultiRegions/ElmtOps/PhysLiftProject/PhysLiftProjectBlockOpDeviceSumFacKernels.hpp>#include <MultiRegions/ElmtOps/PhysLiftProject/PhysLiftProjectBlockOpDeviceSumFacTOPKernels.hpp>#include <MultiRegions/ElmtOps/TraceTables.hpp>#include <algorithm>#include <memory>#include <type_traits>Go to the source code of this file.
Classes | |
| class | Nektar::MultiRegions::detail::PhysLiftProjectBlockOpImpl< ExecSpace, Implementation, TData > |
| Device StdMat block implementation of the lift-and-project operator. More... | |
| struct | Nektar::MultiRegions::detail::PhysLiftProjectBlockOpImpl< ExecSpace, Implementation, TData >::LiftJacobianStaging |
| The faces whose integrals the dense projector's lift forms in shared memory (PhysLiftProjectLiftJacobianKernelLauncher), and the shared-memory entries they take per element and component. More... | |
Namespaces | |
| namespace | Nektar |
| namespace | Nektar::MultiRegions |
| namespace | Nektar::MultiRegions::detail |
Macros | |
| #define | NEKTAR_BLOCKOP_SWITCH_PHYSTRACE |
Device block implementation of the lift-and-project operator, registered for SumFac and SumFacTOP.
A block is applied, through the standard ShapeBlock and the trace switch (NEKTAR_BLOCKOP_SWITCH_PHYSTRACE), by
scale / (w J), with no scratch: on SumFac at warpSize, lanes first; on SumFacTOP at width one, several whole elements per thread block where they are small (GetElmtsPerBlock()). It takes the blocks whose trace values lie at volume points (#m_directLift): segments, quadrilaterals and hexahedra whose traces have the volume points in every in-trace direction, and triangles, tetrahedra, prisms and pyramids of one point;scale / J and the backward transform per element;scale / J and the backward transform in one launch. The kernels read and write the fields at #m_implInterleaveWidth (warpSize for SumFac, one for SumFacTOP); an input, trace or output at the other width is transposed into the workspace (Nektar::transposeBatched) and the output back, so that the operator never writes to its inputs.The nodal shapes, a Pointwise block whose trace values do not lie at volume points, and a SumFacTOP StdInvMass block whose fused launches would not fit in shared memory take the Device block operators of IProductWRTPhysTrace, IProductWRTBase and BwdTrans in turn instead (ApplySeparate()). A block of the ElmtInvMass form takes master's four block operators in sequence (PhysLiftProjectBlockOp::ApplyElmtInvMass()).
The kernels are those of PhysLiftProjectBlockOpDeviceSumFacKernels.hpp (SumFac) and PhysLiftProjectBlockOpDeviceSumFacTOPKernels.hpp (SumFacTOP), each file holding its implementation's arithmetic. The kernels of the two implementations have the same names, each restricted to its Implementation, so that every launch is Kernel<Implementation, ...>, as in BwdTransBlockOpDeviceSumFac.hpp; the SumFacTOP direct lift also takes the elements per thread block. Each implementation sizes its launches with GetElmtsPerBlock() and GetDeviceKernelParameters().
Definition in file PhysLiftProjectBlockOpDeviceSumFac.hpp.
| #define NEKTAR_BLOCKOP_SWITCH_PHYSTRACE |
Definition at line 118 of file PhysLiftProjectBlockOpDeviceSumFac.hpp.