NeoN
A framework for CFD software
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
NeoN::SerialExecutor Class Reference

Reference executor for serial CPU execution. More...

#include <serialExecutor.hpp>

Inheritance diagram for NeoN::SerialExecutor:
NeoN::Logging::SupportsLoggingMixin

Public Types

using exec = Kokkos::Serial
 

Public Member Functions

 SerialExecutor ()
 
 SerialExecutor (std::unique_ptr< AllocatorStrategy > strategy)
 
 ~SerialExecutor ()
 
template<typename T >
T * alloc (size_t elements) const
 
template<typename T >
T * realloc (void *ptr, size_t elements) const
 
void free (void *ptr) const noexcept
 
MemorySpace memorySpace () const noexcept
 
template<typename ValueType >
decltype(autocreateKokkosView (ValueType *ptr, size_t size) const
 create a Kokkos view for a given ptr
 
std::string name () const
 
exec underlyingExec () const
 
- Public Member Functions inherited from NeoN::Logging::SupportsLoggingMixin
void setLogger (const std::shared_ptr< BaseLogger > logger)
 
std::shared_ptr< const BaseLoggergetLogger () const
 

Detailed Description

Reference executor for serial CPU execution.

Definition at line 21 of file serialExecutor.hpp.

Member Typedef Documentation

◆ exec

Definition at line 27 of file serialExecutor.hpp.

Constructor & Destructor Documentation

◆ SerialExecutor() [1/2]

NeoN::SerialExecutor::SerialExecutor ( )

◆ SerialExecutor() [2/2]

NeoN::SerialExecutor::SerialExecutor ( std::unique_ptr< AllocatorStrategy strategy)

◆ ~SerialExecutor()

NeoN::SerialExecutor::~SerialExecutor ( )

Member Function Documentation

◆ alloc()

template<typename T >
T * NeoN::SerialExecutor::alloc ( size_t  elements) const
inline

Definition at line 36 of file serialExecutor.hpp.

◆ createKokkosView()

template<typename ValueType >
decltype(auto) NeoN::SerialExecutor::createKokkosView ( ValueType *  ptr,
size_t  size 
) const
inline

create a Kokkos view for a given ptr

Based on the executor this function creates a Kokkos view into the data managed by ptr

Parameters
ptrPointer to data for which a view should be created
sizeNumber of elements this view contains
Template Parameters
ValueTypeThe value type the underlying memory holds

Definition at line 74 of file serialExecutor.hpp.

◆ free()

void NeoN::SerialExecutor::free ( void ptr) const
inlinenoexcept

Definition at line 55 of file serialExecutor.hpp.

◆ memorySpace()

MemorySpace NeoN::SerialExecutor::memorySpace ( ) const
inlinenoexcept

Definition at line 64 of file serialExecutor.hpp.

◆ name()

std::string NeoN::SerialExecutor::name ( ) const
inline

Definition at line 79 of file serialExecutor.hpp.

◆ realloc()

template<typename T >
T * NeoN::SerialExecutor::realloc ( void ptr,
size_t  elements 
) const
inline

Definition at line 46 of file serialExecutor.hpp.

◆ underlyingExec()

exec NeoN::SerialExecutor::underlyingExec ( ) const
inline

Definition at line 81 of file serialExecutor.hpp.


The documentation for this class was generated from the following file: