Kokkos Core Kernels Package Version of the Day
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Kokkos::Experimental::LogicalMemorySpace< BaseSpace, DefaultBaseExecutionSpace, Namer, SharesAccessWithBase > Class Template Reference

LogicalMemorySpace is a space that is identical to another space, but differentiable by name and template argument. More...

#include <Kokkos_LogicalSpaces.hpp>

Public Types

using memory_space
 Tag this class as a kokkos memory space.
 
using execution_space
 Default execution space for this memory space.
 

Public Member Functions

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.
 

Detailed Description

template<class BaseSpace, class DefaultBaseExecutionSpace = void, class Namer = DefaultMemorySpaceNamer, class SharesAccessWithBase = LogicalSpaceSharesAccess::shared_access>
class Kokkos::Experimental::LogicalMemorySpace< BaseSpace, DefaultBaseExecutionSpace, Namer, SharesAccessWithBase >

LogicalMemorySpace is a space that is identical to another space, but differentiable by name and template argument.

Definition at line 54 of file Kokkos_LogicalSpaces.hpp.

Member Typedef Documentation

◆ memory_space

template<class BaseSpace , class DefaultBaseExecutionSpace = void, class Namer = DefaultMemorySpaceNamer, class SharesAccessWithBase = LogicalSpaceSharesAccess::shared_access>
using Kokkos::Experimental::LogicalMemorySpace< BaseSpace, DefaultBaseExecutionSpace, Namer, SharesAccessWithBase >::memory_space
Initial value:
LogicalMemorySpace<BaseSpace, DefaultBaseExecutionSpace,
Namer, SharesAccessWithBase>

Tag this class as a kokkos memory space.

Definition at line 66 of file Kokkos_LogicalSpaces.hpp.

◆ execution_space

template<class BaseSpace , class DefaultBaseExecutionSpace = void, class Namer = DefaultMemorySpaceNamer, class SharesAccessWithBase = LogicalSpaceSharesAccess::shared_access>
Kokkos::Experimental::LogicalMemorySpace< BaseSpace, DefaultBaseExecutionSpace, Namer, SharesAccessWithBase >::execution_space
Initial value:
std::conditional_t<std::is_void<DefaultBaseExecutionSpace>::value,
typename BaseSpace::execution_space,
DefaultBaseExecutionSpace>

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 77 of file Kokkos_LogicalSpaces.hpp.

Member Function Documentation

◆ allocate()

template<class BaseSpace , class DefaultBaseExecutionSpace = void, class Namer = DefaultMemorySpaceNamer, class SharesAccessWithBase = LogicalSpaceSharesAccess::shared_access>
void * Kokkos::Experimental::LogicalMemorySpace< BaseSpace, DefaultBaseExecutionSpace, Namer, SharesAccessWithBase >::allocate ( const size_t arg_alloc_size) const
inline

Allocate untracked memory in the space.

Definition at line 90 of file Kokkos_LogicalSpaces.hpp.

◆ deallocate()

template<class BaseSpace , class DefaultBaseExecutionSpace = void, class Namer = DefaultMemorySpaceNamer, class SharesAccessWithBase = LogicalSpaceSharesAccess::shared_access>
void Kokkos::Experimental::LogicalMemorySpace< BaseSpace, DefaultBaseExecutionSpace, Namer, SharesAccessWithBase >::deallocate ( void *const arg_alloc_ptr,
const size_t arg_alloc_size ) const
inline

Deallocate untracked memory in the space.

Definition at line 99 of file Kokkos_LogicalSpaces.hpp.

◆ name()

template<class BaseSpace , class DefaultBaseExecutionSpace = void, class Namer = DefaultMemorySpaceNamer, class SharesAccessWithBase = LogicalSpaceSharesAccess::shared_access>
static constexpr const char * Kokkos::Experimental::LogicalMemorySpace< BaseSpace, DefaultBaseExecutionSpace, Namer, SharesAccessWithBase >::name ( )
inlinestaticconstexpr

Return Name of the MemorySpace.

Definition at line 110 of file Kokkos_LogicalSpaces.hpp.


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