#include <KokkosSideReducer.h>
Public Types | |
| enum | TEST_TYPE { ALL, ANY } |
| A flag changing the behavior of hasBoundary. More... | |
Public Member Functions | |
| SideReducer (const MooseObject *moose_object) | |
| SideReducer (const SideReducer &object) | |
| Copy constructor for parallel dispatch. More... | |
| virtual ThreadID | numReducerThreads () const override |
| Get the number of threads. More... | |
| template<typename Derived > | |
| KOKKOS_FUNCTION void | operator() (ReducerLoop, const ThreadID tid, const Derived &reducer, Real *result) const |
| The parallel computation entry function called by Kokkos. More... | |
| KOKKOS_FUNCTION const Mesh & | kokkosMesh () const |
| Get the const reference of the Kokkos mesh. More... | |
| KOKKOS_FUNCTION const Assembly & | kokkosAssembly () const |
| Get the const reference of the Kokkos assembly. More... | |
| KOKKOS_FUNCTION const Array< System > & | kokkosSystems () const |
| Get the const reference of the Kokkos systems. More... | |
| Array< System > & | kokkosSystems () |
| Get the writeable host reference of the Kokkos systems. More... | |
| KOKKOS_FUNCTION const System & | kokkosSystem (unsigned int sys) const |
| Get the const reference of a Kokkos system. More... | |
| System & | kokkosSystem (unsigned int sys) |
| Get the writeable reference of a Kokkos system. More... | |
| virtual const std::set< BoundaryID > & | boundaryIDs () const |
| Return the boundary IDs for this object. More... | |
| const std::vector< BoundaryName > & | boundaryNames () const |
| Return the boundary names for this object. More... | |
| unsigned int | numBoundaryIDs () const |
| Return the number of boundaries for this object. More... | |
| bool | hasBoundary (const BoundaryName &name) const |
| Test if the supplied boundary name is valid for this object. More... | |
| bool | hasBoundary (const std::vector< BoundaryName > &names) const |
| Test if the supplied vector of boundary names are valid for this object. More... | |
| bool | hasBoundary (const BoundaryID &id) const |
| Test if the supplied boundary ids are valid for this object. More... | |
| bool | hasBoundary (const std::vector< BoundaryID > &ids, TEST_TYPE type=ALL) const |
| Test if the supplied vector boundary ids are valid for this object. More... | |
| bool | hasBoundary (const std::set< BoundaryID > &ids, TEST_TYPE type=ALL) const |
| Test if the supplied set of boundary ids are valid for this object. More... | |
| bool | isBoundarySubset (const std::set< BoundaryID > &ids) const |
| Test if the class boundary ids are a subset of the supplied objects. More... | |
| bool | isBoundarySubset (const std::vector< BoundaryID > &ids) const |
| template<typename T , bool is_ad = false> | |
| bool | hasBoundaryMaterialProperty (const std::string &prop_name) const |
| Check if a material property is valid for all boundaries of this object. More... | |
| virtual bool | boundaryRestricted () const |
| Returns true if this object has been restricted to a boundary. More... | |
| const std::set< BoundaryID > & | meshBoundaryIDs () const |
| Returns the set of all boundary ids for the entire mesh. More... | |
| virtual bool | checkVariableBoundaryIntegrity () const |
| Whether integrity/coverage checking should be conducted for moose variables used in this object. More... | |
| template<typename Derived > | |
| KOKKOS_FUNCTION void | reduce (Datum &, Real *) const |
| Default methods to prevent compile errors even when these methods were not defined in the derived class. More... | |
| template<typename Derived > | |
| KOKKOS_FUNCTION void | join (Real *, const Real *) const |
| template<typename Derived > | |
| KOKKOS_FUNCTION void | init (Real *) const |
Static Public Member Functions | |
| static InputParameters | validParams () |
| template<typename Derived > | |
| static auto | defaultReduce () |
| Function used to check if users have overriden the hook method. More... | |
| static bool | restricted (const std::set< BoundaryID > &ids) |
| Helper for determining if the object is boundary restricted. More... | |
Protected Member Functions | |
| virtual void | computeReducer () |
| Dispatch reduction operation. More... | |
| void | allocateReductionBuffer (const unsigned int size) |
| Allocate reduction buffer. More... | |
| bool | hasBoundaryMaterialPropertyHelper (const std::string &prop_name) const |
| A helper method to avoid circular #include problems. More... | |
| KOKKOS_FUNCTION dof_id_type | numKokkosBoundaryNodes () const |
| Get the number of nodes this Kokkos object is operating on. More... | |
| KOKKOS_FUNCTION dof_id_type | numKokkosBoundarySides () const |
| Get the number of sides this Kokkos object is operating on. More... | |
| KOKKOS_FUNCTION ContiguousNodeID | kokkosBoundaryNodeID (Moose::Kokkos::ThreadID tid) const |
| Get the contiguous node ID this Kokkos thread is operating on. More... | |
| KOKKOS_FUNCTION auto | kokkosBoundaryElementSideID (Moose::Kokkos::ThreadID tid) const |
| Get the contiguous element ID - side index pair this Kokkos thread is operating on. More... | |
Protected Attributes | |
| const MooseObject * | _reducer_object |
| MOOSE object. More... | |
| std::unique_ptr< DispatcherBase > | _reducer_dispatcher |
| Kokkos functor dispatcher. More... | |
| ::Kokkos::View< Real *, ::Kokkos::HostSpace > | _reduction_buffer |
| Reduction buffer. More... | |
Definition at line 19 of file KokkosSideReducer.h.
|
inherited |
A flag changing the behavior of hasBoundary.
| Enumerator | |
|---|---|
| ALL | |
| ANY | |
Definition at line 33 of file BoundaryRestrictable.h.
| Moose::Kokkos::SideReducer::SideReducer | ( | const MooseObject * | moose_object | ) |
| Moose::Kokkos::SideReducer::SideReducer | ( | const SideReducer & | object | ) |
Copy constructor for parallel dispatch.
|
inlineprotectedinherited |
Allocate reduction buffer.
Definition at line 88 of file KokkosReducerBase.h.
|
virtualinherited |
Return the boundary IDs for this object.
Definition at line 198 of file BoundaryRestrictable.C.
Referenced by MaterialBase::getGenericZeroMaterialPropertyByName(), BoundaryRestrictable::hasBoundaryMaterialPropertyHelper(), SidesetInfoVectorPostprocessor::initialize(), SideFVFluxBCIntegral::initialSetup(), BoundaryLinearFVFluxIntegral::initialSetup(), InterfaceQpUserObjectBase::initialSetup(), and MaterialBase::registerPropName().
|
inherited |
Return the boundary names for this object.
Definition at line 204 of file BoundaryRestrictable.C.
Referenced by MaterialOutputAction::getParams(), NearestNodeDistanceAux::NearestNodeDistanceAux(), and NearestNodeValueAux::NearestNodeValueAux().
|
virtualinherited |
Returns true if this object has been restricted to a boundary.
Definition at line 216 of file BoundaryRestrictable.C.
Referenced by Moose::Kokkos::Material::checkMaterialProperty(), Material::checkMaterialProperty(), MaterialOutputAction::getParams(), DerivativeMaterialInterface< JvarMapKernelInterface< GenericKernelGrad< is_ad > > >::haveMaterialProperty(), and NodePositions::initialize().
|
inlinevirtualinherited |
Whether integrity/coverage checking should be conducted for moose variables used in this object.
This should return true if variables are only evaluated locally, e.g. on the current node or element. This should return false if evaluation of this object entails non-local variable evaluations
Definition at line 190 of file BoundaryRestrictable.h.
|
protectedvirtualinherited |
Dispatch reduction operation.
|
inlinestaticinherited |
Function used to check if users have overriden the hook method.
Definition at line 70 of file KokkosReducerBase.h.
|
inherited |
Test if the supplied boundary name is valid for this object.
| name | A BoundaryName to check |
Definition at line 228 of file BoundaryRestrictable.C.
Referenced by BoundaryRestrictable::hasBoundary(), BoundaryRestrictable::hasBoundaryMaterialPropertyHelper(), NodePositions::initialize(), and AuxKernelBase::initialSetup().
|
inherited |
Test if the supplied vector of boundary names are valid for this object.
| names | A vector of BoundaryNames to check |
Definition at line 236 of file BoundaryRestrictable.C.
|
inherited |
Test if the supplied boundary ids are valid for this object.
| id | A BoundaryID to check |
Definition at line 242 of file BoundaryRestrictable.C.
|
inherited |
Test if the supplied vector boundary ids are valid for this object.
| ids | A vector of BoundaryIDs ids to check |
| type | A flag for the type of matching to perform: ALL requires that all supplied ids must match those of the object; ANY requires that any one of the supplied ids must match those of the object |
Definition at line 251 of file BoundaryRestrictable.C.
|
inherited |
Test if the supplied set of boundary ids are valid for this object.
| ids | A std::set of BoundaryIDs to check |
| type | A flag for the type of matching to perform: ALL requires that all supplied ids must match those of the object; ANY requires that any one of the supplied ids must match those of the object |
Definition at line 258 of file BoundaryRestrictable.C.
|
inherited |
Check if a material property is valid for all boundaries of this object.
This method returns true if the supplied property name has been declared in a Material object on the boundary ids for this object.
| T | The type of material property |
| prop_name | the name of the property to query |
Definition at line 295 of file BoundaryRestrictable.h.
|
protectedinherited |
A helper method to avoid circular #include problems.
Definition at line 319 of file BoundaryRestrictable.C.
Referenced by BoundaryRestrictable::hasBoundaryMaterialProperty().
|
inlineinherited |
Definition at line 58 of file KokkosReducerBase.h.
|
inherited |
Test if the class boundary ids are a subset of the supplied objects.
| ids | A std::set of boundaries to check |
Definition at line 290 of file BoundaryRestrictable.C.
Referenced by BoundaryRestrictable::isBoundarySubset().
|
inherited |
Definition at line 306 of file BoundaryRestrictable.C.
|
inlineinherited |
Definition at line 52 of file KokkosReducerBase.h.
|
inlineinherited |
Get the const reference of the Kokkos assembly.
Definition at line 569 of file KokkosAssembly.h.
Referenced by Moose::Kokkos::System::getVectorQpADGrad(), Moose::Kokkos::System::getVectorQpADGradFace(), Moose::Kokkos::System::getVectorQpADValue(), Moose::Kokkos::System::getVectorQpADValueFace(), Moose::Kokkos::System::getVectorQpGradFace(), Moose::Kokkos::System::getVectorQpValueFace(), operator()(), Moose::Kokkos::ElementReducer::operator()(), Moose::Kokkos::NodalReducer::operator()(), Moose::Kokkos::NodalUserObject::operator()(), Moose::Kokkos::SideUserObject::operator()(), Moose::Kokkos::ElementUserObject::operator()(), Moose::Kokkos::ADNodalBC::operator()(), Moose::Kokkos::ADKernel::operator()(), Moose::Kokkos::ADIntegratedBC::operator()(), Moose::Kokkos::AuxKernel::operator()(), Moose::Kokkos::Material::operator()(), Moose::Kokkos::NodalBC::operator()(), Moose::Kokkos::NodalKernel::operator()(), Moose::Kokkos::IntegratedBC::operator()(), and Moose::Kokkos::Kernel::operator()().
|
inlineprotectedinherited |
Get the contiguous element ID - side index pair this Kokkos thread is operating on.
| tid | The thread ID |
Definition at line 273 of file BoundaryRestrictable.h.
Referenced by operator()(), Moose::Kokkos::SideUserObject::operator()(), Moose::Kokkos::ADIntegratedBC::operator()(), and Moose::Kokkos::IntegratedBC::operator()().
|
inlineprotectedinherited |
Get the contiguous node ID this Kokkos thread is operating on.
| tid | The thread ID |
Definition at line 264 of file BoundaryRestrictable.h.
Referenced by Moose::Kokkos::NodalReducer::operator()(), Moose::Kokkos::NodalUserObject::operator()(), Moose::Kokkos::ADNodalBC::operator()(), Moose::Kokkos::AuxKernel::operator()(), Moose::Kokkos::NodalBC::operator()(), and Moose::Kokkos::NodalKernel::operator()().
|
inlineinherited |
Get the const reference of the Kokkos mesh.
Definition at line 452 of file KokkosMesh.h.
Referenced by Moose::Kokkos::Assembly::computePhysicalMap(), Moose::Kokkos::Kernel::operator()(), Moose::Kokkos::IntegratedBC::operator()(), Moose::Kokkos::Datum::q_point(), and KokkosBoundNodalKernel::skipOnBoundary().
|
inlineinherited |
Get the const reference of a Kokkos system.
| sys | The system number |
Definition at line 792 of file KokkosSystem.h.
Referenced by Moose::Kokkos::ResidualObject::accumulateTaggedElementalMatrix(), Moose::Kokkos::ResidualObject::accumulateTaggedElementalResidual(), Moose::Kokkos::ResidualObject::accumulateTaggedNodalMatrix(), Moose::Kokkos::ResidualObject::accumulateTaggedNodalResidual(), KokkosCopyValueAux::computeElementInternal(), KokkosCopyValueAux::computeNodeInternal(), KokkosExtraIDIntegralVectorPostprocessor::execute(), Moose::Kokkos::ADNodalBC::operator()(), Moose::Kokkos::AuxKernel::operator()(), Moose::Kokkos::NodalBC::operator()(), Moose::Kokkos::NodalKernel::operator()(), Moose::Kokkos::IntegratedBC::operator()(), Moose::Kokkos::Kernel::operator()(), KokkosExtraIDIntegralVectorPostprocessor::reduce(), Moose::Kokkos::AuxKernel::setElementSolution(), and Moose::Kokkos::AuxKernel::setNodeSolution().
Get the writeable reference of a Kokkos system.
| sys | The system number |
Definition at line 803 of file KokkosSystem.h.
|
inlineinherited |
Get the const reference of the Kokkos systems.
Definition at line 775 of file KokkosSystem.h.
Referenced by Moose::Kokkos::ElementReducer::operator()(), operator()(), Moose::Kokkos::NodalReducer::operator()(), Moose::Kokkos::NodalUserObject::operator()(), Moose::Kokkos::SideUserObject::operator()(), Moose::Kokkos::ElementUserObject::operator()(), Moose::Kokkos::ADNodalBC::operator()(), Moose::Kokkos::ADKernel::operator()(), Moose::Kokkos::ADIntegratedBC::operator()(), Moose::Kokkos::AuxKernel::operator()(), Moose::Kokkos::Material::operator()(), Moose::Kokkos::NodalBC::operator()(), Moose::Kokkos::NodalKernel::operator()(), Moose::Kokkos::Kernel::operator()(), and Moose::Kokkos::IntegratedBC::operator()().
Get the writeable host reference of the Kokkos systems.
Definition at line 785 of file KokkosSystem.h.
|
inherited |
Returns the set of all boundary ids for the entire mesh.
Definition at line 313 of file BoundaryRestrictable.C.
Referenced by BoundaryRestrictable::hasBoundaryMaterialPropertyHelper().
|
inherited |
Return the number of boundaries for this object.
Definition at line 210 of file BoundaryRestrictable.C.
Referenced by SidesetInfoVectorPostprocessor::initialize().
|
inlineprotectedinherited |
Get the number of nodes this Kokkos object is operating on.
Definition at line 250 of file BoundaryRestrictable.h.
Referenced by Moose::Kokkos::NodalReducer::numReducerThreads(), and Moose::Kokkos::NodalUserObject::numUserObjectThreads().
|
inlineprotectedinherited |
Get the number of sides this Kokkos object is operating on.
Definition at line 255 of file BoundaryRestrictable.h.
Referenced by numReducerThreads(), and Moose::Kokkos::SideUserObject::numUserObjectThreads().
|
inlineoverridevirtual |
Get the number of threads.
Implements Moose::Kokkos::ReducerBase.
Definition at line 31 of file KokkosSideReducer.h.
| KOKKOS_FUNCTION void Moose::Kokkos::SideReducer::operator() | ( | ReducerLoop | , |
| const ThreadID | tid, | ||
| const Derived & | reducer, | ||
| Real * | result | ||
| ) | const |
The parallel computation entry function called by Kokkos.
Definition at line 43 of file KokkosSideReducer.h.
|
inlineinherited |
Default methods to prevent compile errors even when these methods were not defined in the derived class.
Definition at line 46 of file KokkosReducerBase.h.
|
staticinherited |
Helper for determining if the object is boundary restricted.
This is needed for the MaterialPropertyInterface.
Definition at line 222 of file BoundaryRestrictable.C.
Referenced by moose::internal::boundaryRestricted(), and BoundaryRestrictable::boundaryRestricted().
|
static |
|
protectedinherited |
Kokkos functor dispatcher.
Definition at line 100 of file KokkosReducerBase.h.
|
protectedinherited |
MOOSE object.
Definition at line 96 of file KokkosReducerBase.h.
|
protectedinherited |
Reduction buffer.
Definition at line 104 of file KokkosReducerBase.h.
Referenced by Moose::Kokkos::ReducerBase::allocateReductionBuffer().
1.8.14