Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | Static Public Attributes | List of all members
Stokhos::MemoryTraits< MemorySpace > Struct Template Reference

Traits class encapsulting memory alignment. More...

#include <Stokhos_MemoryTraits.hpp>

Static Public Member Functions

static KOKKOS_INLINE_FUNCTION
void * 
alloc (const size_t size)
 Allocate aligned memory of given size. More...
 
static KOKKOS_INLINE_FUNCTION void free (void *ptr)
 Free memory allocated by alloc() More...
 

Static Public Attributes

static const unsigned Alignment = 8
 Bytes to which memory allocations are aligned. More...
 

Detailed Description

template<typename MemorySpace>
struct Stokhos::MemoryTraits< MemorySpace >

Traits class encapsulting memory alignment.

Definition at line 47 of file Stokhos_MemoryTraits.hpp.

Member Function Documentation

template<typename MemorySpace >
static KOKKOS_INLINE_FUNCTION void* Stokhos::MemoryTraits< MemorySpace >::alloc ( const size_t  size)
inlinestatic

Allocate aligned memory of given size.

Definition at line 54 of file Stokhos_MemoryTraits.hpp.

template<typename MemorySpace >
static KOKKOS_INLINE_FUNCTION void Stokhos::MemoryTraits< MemorySpace >::free ( void *  ptr)
inlinestatic

Free memory allocated by alloc()

Definition at line 58 of file Stokhos_MemoryTraits.hpp.

Member Data Documentation

template<typename MemorySpace >
const unsigned Stokhos::MemoryTraits< MemorySpace >::Alignment = 8
static

Bytes to which memory allocations are aligned.

Definition at line 50 of file Stokhos_MemoryTraits.hpp.


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