#include <KokkosReducerBase.h>
Definition at line 24 of file KokkosReducerBase.h.
◆ ReducerBase() [1/2]
| Moose::Kokkos::ReducerBase::ReducerBase |
( |
const MooseObject * |
object | ) |
|
◆ ReducerBase() [2/2]
| Moose::Kokkos::ReducerBase::ReducerBase |
( |
const ReducerBase & |
reducer | ) |
|
Copy constructor for parallel dispatch.
◆ allocateReductionBuffer()
| void Moose::Kokkos::ReducerBase::allocateReductionBuffer |
( |
const unsigned int |
size | ) |
|
|
inlineprotected |
Allocate reduction buffer.
Definition at line 89 of file KokkosReducerBase.h.
::Kokkos::View< Real *, ::Kokkos::HostSpace > _reduction_buffer
Reduction buffer.
◆ computeReducer()
| virtual void Moose::Kokkos::ReducerBase::computeReducer |
( |
| ) |
|
|
protectedvirtual |
Dispatch reduction operation.
◆ defaultReduce()
template<typename Derived >
| static auto Moose::Kokkos::ReducerBase::defaultReduce |
( |
| ) |
|
|
inlinestatic |
Function used to check if users have overriden the hook method.
- Returns
- The function pointer of the default hook method
Definition at line 71 of file KokkosReducerBase.h.
73 return &ReducerBase::reduce<Derived>;
◆ init()
template<typename Derived >
| KOKKOS_FUNCTION void Moose::Kokkos::ReducerBase::init |
( |
Real * |
| ) |
const |
|
inline |
Definition at line 59 of file KokkosReducerBase.h.
61 ::Kokkos::abort(
"Default init() should never be called. Make sure you properly redefined this " 62 "method in your class without typos.");
◆ join()
template<typename Derived >
| KOKKOS_FUNCTION void Moose::Kokkos::ReducerBase::join |
( |
Real * |
, |
|
|
const Real * |
|
|
) |
| const |
|
inline |
Definition at line 53 of file KokkosReducerBase.h.
55 ::Kokkos::abort(
"Default join() should never be called. Make sure you properly redefined this " 56 "method in your class without typos.");
◆ kokkosAssembly()
| KOKKOS_FUNCTION const Assembly& Moose::Kokkos::AssemblyHolder::kokkosAssembly |
( |
| ) |
const |
|
inlineinherited |
Get the const reference of the Kokkos assembly.
- Returns
- The const reference of the Kokkos assembly depending on the architecture this function is being called on
Definition at line 634 of file KokkosAssembly.h.
Referenced by Moose::Kokkos::FESystem::getVectorQpADGrad(), Moose::Kokkos::FESystem::getVectorQpADGradFace(), Moose::Kokkos::FESystem::getVectorQpADValue(), Moose::Kokkos::FESystem::getVectorQpADValueFace(), Moose::Kokkos::FESystem::getVectorQpGradFace(), Moose::Kokkos::FESystem::getVectorQpValueFace(), Moose::Kokkos::FESystem::getVectorQpVectorGradFace(), Moose::Kokkos::FESystem::getVectorQpVectorValueFace(), Moose::Kokkos::ElementReducer::operator()(), Moose::Kokkos::SideReducer::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::VectorNodalBC::operator()(), Moose::Kokkos::AuxKernel::operator()(), Moose::Kokkos::VectorIntegratedBC::operator()(), Moose::Kokkos::VectorKernel::operator()(), Moose::Kokkos::Material::operator()(), Moose::Kokkos::NodalBC::operator()(), Moose::Kokkos::NodalKernel::operator()(), Moose::Kokkos::Kernel::operator()(), and Moose::Kokkos::IntegratedBC::operator()().
const Assembly _assembly_device
Device copy of the Kokkos assembly.
const Assembly & _assembly_host
Host reference of the Kokkos assembly.
◆ kokkosMesh()
| KOKKOS_FUNCTION const Mesh& Moose::Kokkos::MeshHolder::kokkosMesh |
( |
| ) |
const |
|
inlineinherited |
Get the const reference of the Kokkos mesh.
- Returns
- The const reference of the Kokkos mesh depending on the architecture this function is being called on
Definition at line 651 of file KokkosMesh.h.
Referenced by Moose::Kokkos::Assembly::computePhysicalMap(), Moose::Kokkos::LinearFVElementalKernel::operator()(), Moose::Kokkos::LinearFVFluxKernel::operator()(), Moose::Kokkos::VectorIntegratedBC::operator()(), Moose::Kokkos::VectorKernel::operator()(), Moose::Kokkos::Kernel::operator()(), Moose::Kokkos::IntegratedBC::operator()(), Moose::Kokkos::LinearFVBoundaryCondition::operator()(), Moose::Kokkos::Datum::q_point(), and KokkosBoundNodalKernel::skipOnBoundary().
655 "kokkosMesh() was called too early. Kokkos mesh is available after problem " 656 "initialization. Override initialSetup() if you need to setup your object data " 657 "using the Kokkos mesh.");
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
bool initialized() const
Get whether the mesh was initialized.
const Mesh _mesh_device
Device copy of the Kokkos mesh.
const Mesh & _mesh_host
Host reference of the Kokkos mesh.
◆ numReducerThreads()
| virtual ThreadID Moose::Kokkos::ReducerBase::numReducerThreads |
( |
| ) |
const |
|
protectedpure virtual |
◆ reduce()
template<typename Derived >
| KOKKOS_FUNCTION void Moose::Kokkos::ReducerBase::reduce |
( |
Datum & |
, |
|
|
Real * |
|
|
) |
| const |
|
inline |
Default methods to prevent compile errors even when these methods were not defined in the derived class.
Definition at line 47 of file KokkosReducerBase.h.
49 ::Kokkos::abort(
"Default reduce() should never be called. Make sure you properly redefined " 50 "this method in your class without typos.");
◆ _reducer_dispatcher
| std::unique_ptr<DispatcherBase> Moose::Kokkos::ReducerBase::_reducer_dispatcher |
|
protected |
◆ _reducer_object
| const MooseObject* Moose::Kokkos::ReducerBase::_reducer_object |
|
protected |
◆ _reduction_buffer
| ::Kokkos::View<Real *, ::Kokkos::HostSpace> Moose::Kokkos::ReducerBase::_reduction_buffer |
|
protected |
The documentation for this class was generated from the following file: