Kokkos Core Kernels Package Version of the Day
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
Kokkos::HostSpace Class Reference

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...
 
using memory_space = HostSpace
 Tag this class as a kokkos memory space.
 
using execution_space = DefaultHostExecutionSpace
 Default execution space for this memory space.
 
using device_type = Kokkos::Device<execution_space, memory_space>
 This memory space preferred device_type.
 

Public Member Functions

 HostSpace ()
 Default memory space instance.
 
voidallocate (const size_t arg_alloc_size) const
 Allocate untracked memory in the space.
 
void deallocate (void *const arg_alloc_ptr, const size_t arg_alloc_size) const
 Deallocate untracked memory in the space.
 

Static Public Member Functions

static constexpr const charname ()
 Return Name of the MemorySpace.
 

Friends

template<class , class , class , class >
class Kokkos::Experimental::LogicalMemorySpace
 

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

Member Typedef Documentation

◆ memory_space

Tag this class as a kokkos memory space.

Definition at line 84 of file Kokkos_HostSpace.hpp.

◆ execution_space

Kokkos::HostSpace::execution_space = DefaultHostExecutionSpace

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

◆ device_type

This memory space preferred device_type.

Definition at line 96 of file Kokkos_HostSpace.hpp.

Member Enumeration Documentation

◆ AllocationMechanism

Non-default memory space instance to choose allocation mechansim, if available.

Definition at line 109 of file Kokkos_HostSpace.hpp.

Constructor & Destructor Documentation

◆ HostSpace()

Kokkos::HostSpace::HostSpace ( )

Default memory space instance.

Member Function Documentation

◆ allocate()

void * Kokkos::HostSpace::allocate ( const size_t arg_alloc_size) const

Allocate untracked memory in the space.

◆ deallocate()

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

Deallocate untracked memory in the space.

◆ name()

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

Return Name of the MemorySpace.

Definition at line 145 of file Kokkos_HostSpace.hpp.


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