Kokkos Core Kernels Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Kokkos::HostSpace Class Reference

Memory management for host memory. More...

#include <Kokkos_HostSpace.hpp>

Public Types

using memory_space = HostSpace
 Tag this class as a kokkos memory space. More...
 
using execution_space = DefaultHostExecutionSpace
 Default execution space for this memory space. More...
 
using device_type = Kokkos::Device< execution_space, memory_space >
 This memory space preferred device_type. More...
 

Public Member Functions

template<typename ExecutionSpace >
void * allocate (const ExecutionSpace &, 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...
 

Detailed Description

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 49 of file Kokkos_HostSpace.hpp.

Member Typedef Documentation

Tag this class as a kokkos memory space.

Definition at line 52 of file Kokkos_HostSpace.hpp.

Default execution space for this memory space.

Every memory space has a default execution space. This is useful for things like initializing a View (which happens in parallel using the View's default execution space).

Definition at line 61 of file Kokkos_HostSpace.hpp.

This memory space preferred device_type.

Definition at line 64 of file Kokkos_HostSpace.hpp.

Member Function Documentation

template<typename ExecutionSpace >
void* Kokkos::HostSpace::allocate ( const ExecutionSpace &  ,
const size_t  arg_alloc_size 
) const
inline

Allocate untracked memory in the space.

Definition at line 97 of file Kokkos_HostSpace.hpp.

void Kokkos::HostSpace::deallocate ( void *const  arg_alloc_ptr,
const size_t  arg_alloc_size 
) const

Deallocate untracked memory in the space.

static constexpr const char* Kokkos::HostSpace::name ( )
inlinestatic

Return Name of the MemorySpace.

Definition at line 127 of file Kokkos_HostSpace.hpp.


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