Public Types | Static Public Member Functions
parallel_utils::MemManager< T, PT > Struct Template Reference

#include <parallel_memory.h>

List of all members.

Public Types

typedef void ** device_init_type
typedef T * device_type
typedef T * host_type
typedef unsigned int mem_flags
typedef int stream_type

Static Public Member Functions

static void allocateDevice (void **ptr, size_t size)
static void allocateHost (void **ptr, size_t size, int flags)
static void copyToDevice (void *dst, void *src, size_t size, CopyType copyType, stream_type stream)
static void copyToHost (void *dst, void *src, size_t size, CopyType copyType, stream_type stream)
static void freeDevice (void *ptr)
static void freeHost (void *ptr)

Detailed Description

template<typename T, ParallelType PT>
struct parallel_utils::MemManager< T, PT >

Definition at line 20 of file parallel_memory.h.


Member Typedef Documentation

template<typename T , ParallelType PT>
typedef void** parallel_utils::MemManager< T, PT >::device_init_type

Definition at line 24 of file parallel_memory.h.

template<typename T , ParallelType PT>
typedef T* parallel_utils::MemManager< T, PT >::device_type

Definition at line 23 of file parallel_memory.h.

template<typename T , ParallelType PT>
typedef T* parallel_utils::MemManager< T, PT >::host_type

Definition at line 22 of file parallel_memory.h.

template<typename T , ParallelType PT>
typedef unsigned int parallel_utils::MemManager< T, PT >::mem_flags

Definition at line 26 of file parallel_memory.h.

template<typename T , ParallelType PT>
typedef int parallel_utils::MemManager< T, PT >::stream_type

Definition at line 25 of file parallel_memory.h.


Member Function Documentation

template<typename T , ParallelType PT>
static void parallel_utils::MemManager< T, PT >::allocateDevice ( void **  ptr,
size_t  size 
) [inline, static]

Definition at line 36 of file parallel_memory.h.

template<typename T , ParallelType PT>
static void parallel_utils::MemManager< T, PT >::allocateHost ( void **  ptr,
size_t  size,
int  flags 
) [inline, static]

Definition at line 28 of file parallel_memory.h.

template<typename T , ParallelType PT>
static void parallel_utils::MemManager< T, PT >::copyToDevice ( void *  dst,
void *  src,
size_t  size,
CopyType  copyType,
stream_type  stream 
) [inline, static]

Definition at line 48 of file parallel_memory.h.

template<typename T , ParallelType PT>
static void parallel_utils::MemManager< T, PT >::copyToHost ( void *  dst,
void *  src,
size_t  size,
CopyType  copyType,
stream_type  stream 
) [inline, static]

Definition at line 44 of file parallel_memory.h.

template<typename T , ParallelType PT>
static void parallel_utils::MemManager< T, PT >::freeDevice ( void *  ptr) [inline, static]

Definition at line 40 of file parallel_memory.h.

template<typename T , ParallelType PT>
static void parallel_utils::MemManager< T, PT >::freeHost ( void *  ptr) [inline, static]

Definition at line 32 of file parallel_memory.h.


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


parallel_quickstep
Author(s): Jared Duke
autogenerated on Fri Jan 3 2014 11:36:56