Executor for GPU offloading.
More...
#include <GPUExecutor.hpp>
|
using | exec = Kokkos::DefaultExecutionSpace |
|
Executor for GPU offloading.
Definition at line 16 of file GPUExecutor.hpp.
◆ exec
◆ GPUExecutor()
NeoFOAM::GPUExecutor::GPUExecutor |
( |
| ) |
|
◆ ~GPUExecutor()
NeoFOAM::GPUExecutor::~GPUExecutor |
( |
| ) |
|
◆ alloc() [1/2]
template<typename T >
T * NeoFOAM::GPUExecutor::alloc |
( |
size_t |
size | ) |
const |
|
inline |
◆ alloc() [2/2]
void * NeoFOAM::GPUExecutor::alloc |
( |
size_t |
size | ) |
const |
|
inline |
◆ createKokkosView()
template<typename ValueType >
decltype(auto) NeoFOAM::GPUExecutor::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
-
ptr | Pointer to data for which a view should be created |
size | Number of elements this view contains |
- Template Parameters
-
ValueType | The value type the underlying memory holds |
Definition at line 45 of file GPUExecutor.hpp.
◆ free()
void NeoFOAM::GPUExecutor::free |
( |
void * |
ptr | ) |
const |
|
inlinenoexcept |
◆ name()
std::string NeoFOAM::GPUExecutor::name |
( |
| ) |
const |
|
inline |
◆ realloc() [1/2]
template<typename T >
T * NeoFOAM::GPUExecutor::realloc |
( |
void * |
ptr, |
|
|
size_t |
newSize |
|
) |
| const |
|
inline |
◆ realloc() [2/2]
void * NeoFOAM::GPUExecutor::realloc |
( |
void * |
ptr, |
|
|
size_t |
newSize |
|
) |
| const |
|
inline |
The documentation for this class was generated from the following file:
- /home/runner/work/NeoFOAM/NeoFOAM/include/NeoFOAM/core/executor/GPUExecutor.hpp