Kokkos Core Kernels Package
Version of the Day
|
Memory management for host memory. More...
#include <Kokkos_HostSpace.hpp>
Public Types | |
enum | AllocationMechanism |
Non-default memory space instance to choose allocation mechansim, if available. More... | |
typedef HostSpace | memory_space |
Tag this class as a kokkos memory space. More... | |
typedef Kokkos::Device < execution_space, memory_space > | device_type |
This memory space preferred device_type. More... | |
Public Member Functions | |
HostSpace () | |
Default memory space instance. More... | |
void * | allocate (const size_t arg_alloc_size) const |
Allocate untracked memory in the space. More... | |
void | deallocate (void *const arg_alloc_ptr, const size_t arg_alloc_size) const |
Deallocate untracked memory in the space. More... | |
Static Public Member Functions | |
static constexpr const char * | name () |
Return Name of the MemorySpace. More... | |
Memory management for host memory.
HostSpace is a memory space that governs host memory. "Host" memory means the usual CPU-accessible memory.
Definition at line 102 of file Kokkos_HostSpace.hpp.
Tag this class as a kokkos memory space.
Definition at line 105 of file Kokkos_HostSpace.hpp.
typedef Kokkos::Device< execution_space, memory_space > Kokkos::HostSpace::device_type |
This memory space preferred device_type.
Definition at line 133 of file Kokkos_HostSpace.hpp.
Non-default memory space instance to choose allocation mechansim, if available.
Definition at line 145 of file Kokkos_HostSpace.hpp.
Kokkos::HostSpace::HostSpace | ( | ) |
Default memory space instance.
void* Kokkos::HostSpace::allocate | ( | const size_t | arg_alloc_size | ) | const |
Allocate untracked memory in the space.
void Kokkos::HostSpace::deallocate | ( | void *const | arg_alloc_ptr, |
const size_t | arg_alloc_size | ||
) | const |
Deallocate untracked memory in the space.
|
inlinestatic |
Return Name of the MemorySpace.
Definition at line 158 of file Kokkos_HostSpace.hpp.