Kokkos Core Kernels Package
Version of the Day
|
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 = LogicalMemorySpace< BaseSpace, DefaultBaseExecutionSpace, Namer, SharesAccessWithBase > |
Tag this class as a kokkos memory space. More... | |
using | execution_space = std::conditional_t< std::is_void< DefaultBaseExecutionSpace >::value, typename BaseSpace::execution_space, DefaultBaseExecutionSpace > |
Default execution space for this memory space. More... | |
Public Member Functions | |
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... | |
LogicalMemorySpace is a space that is identical to another space, but differentiable by name and template argument.
Definition at line 268 of file Kokkos_Core_fwd.hpp.
using Kokkos::Experimental::LogicalMemorySpace< class, class, class, class >::memory_space = LogicalMemorySpace<BaseSpace, DefaultBaseExecutionSpace, Namer, SharesAccessWithBase> |
Tag this class as a kokkos memory space.
Definition at line 67 of file Kokkos_LogicalSpaces.hpp.
Kokkos::Experimental::LogicalMemorySpace< class, class, class, class >::execution_space |
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 80 of file Kokkos_LogicalSpaces.hpp.
|
inline |
Allocate untracked memory in the space.
Definition at line 90 of file Kokkos_LogicalSpaces.hpp.
|
inline |
Deallocate untracked memory in the space.
Definition at line 99 of file Kokkos_LogicalSpaces.hpp.
|
inlinestatic |
Return Name of the MemorySpace.
Definition at line 110 of file Kokkos_LogicalSpaces.hpp.