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

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
 

Detailed Description

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

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().

Note
CMake includes this header into the registration translation units it generates for this operator, execution space and implementation, and into the per-shape ShapeBlock units generated from LibUtilities/BasicUtils/Switch/BlockOpShapeBlock.cpp.in; other code goes through PhysLiftProjectOp.hpp and the operator factory.

Definition in file PhysLiftProjectBlockOpDeviceSumFac.hpp.

Macro Definition Documentation

◆ NEKTAR_BLOCKOP_SWITCH_PHYSTRACE

#define NEKTAR_BLOCKOP_SWITCH_PHYSTRACE

Definition at line 118 of file PhysLiftProjectBlockOpDeviceSumFac.hpp.