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::Experimental::LogicalMemorySpace< class, class, class, class > 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 = 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...
 

Detailed Description

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

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.

Member Typedef Documentation

template<class , class , class , class >
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.

template<class , class , class , class >
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.

Member Function Documentation

template<class , class , class , class >
void* Kokkos::Experimental::LogicalMemorySpace< class, class, class, class >::allocate ( const size_t  arg_alloc_size) const
inline

Allocate untracked memory in the space.

Definition at line 90 of file Kokkos_LogicalSpaces.hpp.

template<class , class , class , class >
void Kokkos::Experimental::LogicalMemorySpace< class, class, class, class >::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.

template<class , class , class , class >
static constexpr const char* Kokkos::Experimental::LogicalMemorySpace< class, class, class, class >::name ( )
inlinestatic

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: