|
NeoN
A framework for CFD software
|
#include <kokkos.hpp>
Public Types | |
| using | GPUMemSpace = Kokkos::DefaultExecutionSpace::memory_space |
| using | CPUMemSpace = Kokkos::HostSpace |
Public Member Functions | |
| void * | alloc (size_t size) override |
| allocate a block of size bytes | |
| void * | realloc (void *ptr, size_t size) override |
| reallocate a block of size bytes | |
| void | free (void *ptr) override |
| free a block of size bytes | |
| ~KokkosAllocator () override | |
Public Member Functions inherited from NeoN::AllocatorStrategy | |
| void | setMemSpace (MemorySpace memSpace) |
| set tag controlling where allocation happens | |
| virtual | ~AllocatorStrategy () |
Additional Inherited Members | |
Protected Attributes inherited from NeoN::AllocatorStrategy | |
| MemorySpace | memSpace_ = MemorySpace::CPU |
Definition at line 18 of file kokkos.hpp.
| using NeoN::KokkosAllocator::CPUMemSpace = Kokkos::HostSpace |
Definition at line 24 of file kokkos.hpp.
| using NeoN::KokkosAllocator::GPUMemSpace = Kokkos::DefaultExecutionSpace::memory_space |
Definition at line 23 of file kokkos.hpp.
|
inlineoverride |
Definition at line 32 of file kokkos.hpp.
|
overridevirtual |
allocate a block of size bytes
Implements NeoN::AllocatorStrategy.
free a block of size bytes
Implements NeoN::AllocatorStrategy.
reallocate a block of size bytes
Implements NeoN::AllocatorStrategy.