|
Nektar++
|
Device SumFac kernels of the lift-and-project operator: the direct lift of the Pointwise form, the fused launches of the StdInvMass form, and the scales the separate-operator route takes. More...
#include <LibUtilities/Backends/Backends_Device_API.hpp>#include <LibUtilities/BasicUtils/SafeDivide.hpp>#include <LibUtilities/BasicUtils/Utils/UtilsDeviceKernels.hpp>#include <MultiRegions/ElmtOps/BwdTrans/BwdTransBlockOpDeviceSumFacKernels.hpp>#include <MultiRegions/ElmtOps/ElmtBlockOp.hpp>#include <MultiRegions/ElmtOps/IProductWRTBase/IProductWRTBaseBlockOpDeviceSumFacKernels.hpp>#include <MultiRegions/ElmtOps/IProductWRTPhysTrace/IProductWRTPhysTraceBlockOpDeviceSumFacKernels.hpp>#include <MultiRegions/ElmtOps/PhysLiftProject/PhysLiftProjectBlockOp.hpp>#include <type_traits>Go to the source code of this file.
Namespaces | |
| namespace | Nektar |
| namespace | Nektar::MultiRegions |
| namespace | Nektar::MultiRegions::detail |
Device SumFac kernels of the lift-and-project operator: the direct lift of the Pointwise form, the fused launches of the StdInvMass form, and the scales the separate-operator route takes.
As the other SumFac Device kernels, one thread per element: the block is at warpSize, element e is lane ilane = e % warpSize of element group iwarp = e / warpSize, consecutive threads touch consecutive entries, and each thread loops over its element's points or modes. Each kernel is restricted to Implementation SumFac; its SumFacTOP counterpart has the same name and arguments, so that the caller launches Kernel<Implementation, ...> for either.
The fused launches are built from the per-element functions of the IProductWRTPhysTrace, IProductWRTBase and BwdTrans SumFac kernels, as the Mass kernels chain BwdTrans and IProductWRTBase:
PhysLiftProjectPointwiseKernel and PhysLiftProjectInvMassScaleKernel serve the separate-operator route, which takes the nodal shapes and the Pointwise blocks the direct lift does not.
PhysLiftProjectDirectLiftKernelLauncher, the Pointwise form's direct lift, takes one thread per point of each element instead, lanes first, a thread block being a warp as for the other kernels. The quadrature weights are read once per point and broadcast across the lanes, as the basis is.
Definition in file PhysLiftProjectBlockOpDeviceSumFacKernels.hpp.