The Kokkos interface that holds the host reference of the Kokkos systems and copies it to device during parallel dispatch. More...
#include <KokkosSystem.h>
Public Member Functions | |
SystemHolder (Array< System > &systems) | |
Constructor. More... | |
SystemHolder (const SystemHolder &holder) | |
Copy constructor. 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... | |
Private Attributes | |
Array< System > & | _systems_host |
Host reference of the Kokkos systems. More... | |
const Array< System > | _systems_device |
Device copy of the Kokkos systems. More... | |
The Kokkos interface that holds the host reference of the Kokkos systems and copies it to device during parallel dispatch.
Maintains synchronization between host and device Kokkos systems and provides access to the appropriate Kokkos systems depending on the architecture.
Definition at line 576 of file KokkosSystem.h.
Constructor.
systems | The Kokkos systems |
Definition at line 583 of file KokkosSystem.h.
|
inline |
Copy constructor.
Definition at line 587 of file KokkosSystem.h.
|
inline |
Get the const reference of a Kokkos system.
sys | The system number |
Definition at line 615 of file KokkosSystem.h.
Referenced by Moose::Kokkos::ResidualObject::accumulateTaggedElementalMatrix(), Moose::Kokkos::ResidualObject::accumulateTaggedElementalResidual(), Moose::Kokkos::ResidualObject::accumulateTaggedNodalMatrix(), Moose::Kokkos::ResidualObject::accumulateTaggedNodalResidual(), and Moose::Kokkos::VariableNodalValue::operator()().
Get the writeable reference of a Kokkos system.
sys | The system number |
Definition at line 626 of file KokkosSystem.h.
Get the const reference of the Kokkos systems.
Definition at line 598 of file KokkosSystem.h.
Get the writeable host reference of the Kokkos systems.
Definition at line 608 of file KokkosSystem.h.
Device copy of the Kokkos systems.
Definition at line 637 of file KokkosSystem.h.
Referenced by kokkosSystem(), and kokkosSystems().
Host reference of the Kokkos systems.
Definition at line 633 of file KokkosSystem.h.
Referenced by kokkosSystem(), and kokkosSystems().