|
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 = typename std::conditional< std::is_void< DefaultBaseExecutionSpace >::value, typename BaseSpace::execution_space, DefaultBaseExecutionSpace >::type |
| 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 77 of file Kokkos_LogicalSpaces.hpp.
| using Kokkos::Experimental::LogicalMemorySpace< BaseSpace, DefaultBaseExecutionSpace, Namer, SharesAccessWithBase >::memory_space = LogicalMemorySpace<BaseSpace, DefaultBaseExecutionSpace, Namer, SharesAccessWithBase> |
Tag this class as a kokkos memory space.
Definition at line 89 of file Kokkos_LogicalSpaces.hpp.
| Kokkos::Experimental::LogicalMemorySpace< BaseSpace, DefaultBaseExecutionSpace, Namer, SharesAccessWithBase >::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 100 of file Kokkos_LogicalSpaces.hpp.
|
inline |
Allocate untracked memory in the space.
Definition at line 113 of file Kokkos_LogicalSpaces.hpp.
|
inline |
Deallocate untracked memory in the space.
Definition at line 122 of file Kokkos_LogicalSpaces.hpp.
|
inlinestaticconstexpr |
Return Name of the MemorySpace.
Definition at line 133 of file Kokkos_LogicalSpaces.hpp.