SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::helper::MemoryManager< T > Class Template Reference

#include <MemoryManager.h>

Inheritance diagram for sofa::helper::MemoryManager< T >:

Detailed Description

template<class T>
class sofa::helper::MemoryManager< T >

Generic MemoryManager Its use is informative only and it cannot be instancied (linkage error otherwise).

Static Public Member Functions

static int numDevices ()
 
static void hostAlloc (host_pointer *hPointer, int n)
 
static void memsetHost (host_pointer hPointer, int value, size_t n)
 
static void hostFree (const host_pointer hSrcPointer)
 
static void deviceAlloc (int d, device_pointer *dPointer, int n)
 
static void deviceFree (int d, const device_pointer dSrcPointer)
 
static void memcpyHostToDevice (int d, device_pointer dDestPointer, const host_pointer hSrcPointer, size_t n)
 
static void memcpyDeviceToHost (int d, host_pointer hDestPointer, const void *dSrcPointer, size_t n)
 
static void memcpyDeviceToDevice (int d, device_pointer dDestPointer, const device_pointer dSrcPointer, size_t n)
 
static void memsetDevice (int d, device_pointer dDestPointer, int value, size_t n)
 
static int getBufferDevice ()
 
static bool bufferAlloc (gl_buffer *, int)
 
static void bufferFree (const gl_buffer)
 
static bool bufferRegister (const gl_buffer)
 
static void bufferUnregister (const gl_buffer)
 
static bool bufferMapToDevice (device_pointer *, const gl_buffer)
 
static void bufferUnmapToDevice (device_pointer *, const gl_buffer)
 
static device_pointer deviceOffset (device_pointer dPointer, size_t offset)
 
static device_pointer null ()
 
static bool isNull (device_pointer p)
 

Function details

template<class T>
static bool sofa::helper::MemoryManager< T >::bufferAlloc ( gl_buffer ,
int   
)
inlinestatic
template<class T>
static void sofa::helper::MemoryManager< T >::bufferFree ( const gl_buffer  )
inlinestatic
template<class T>
static bool sofa::helper::MemoryManager< T >::bufferMapToDevice ( device_pointer ,
const gl_buffer   
)
inlinestatic
template<class T>
static bool sofa::helper::MemoryManager< T >::bufferRegister ( const gl_buffer  )
inlinestatic
template<class T>
static void sofa::helper::MemoryManager< T >::bufferUnmapToDevice ( device_pointer ,
const gl_buffer   
)
inlinestatic
template<class T>
static void sofa::helper::MemoryManager< T >::bufferUnregister ( const gl_buffer  )
inlinestatic
template<class T>
static void sofa::helper::MemoryManager< T >::deviceAlloc ( int  d,
device_pointer dPointer,
int  n 
)
static
template<class T>
static void sofa::helper::MemoryManager< T >::deviceFree ( int  d,
const device_pointer  dSrcPointer 
)
static
template<class T>
static device_pointer sofa::helper::MemoryManager< T >::deviceOffset ( device_pointer  dPointer,
size_t  offset 
)
inlinestatic
template<class T>
static int sofa::helper::MemoryManager< T >::getBufferDevice ( )
static
template<class T>
static void sofa::helper::MemoryManager< T >::hostAlloc ( host_pointer hPointer,
int  n 
)
inlinestatic
template<class T>
static void sofa::helper::MemoryManager< T >::hostFree ( const host_pointer  hSrcPointer)
static
template<class T>
static bool sofa::helper::MemoryManager< T >::isNull ( device_pointer  p)
inlinestatic
template<class T>
static void sofa::helper::MemoryManager< T >::memcpyDeviceToDevice ( int  d,
device_pointer  dDestPointer,
const device_pointer  dSrcPointer,
size_t  n 
)
static
template<class T>
static void sofa::helper::MemoryManager< T >::memcpyDeviceToHost ( int  d,
host_pointer  hDestPointer,
const void *  dSrcPointer,
size_t  n 
)
static
template<class T>
static void sofa::helper::MemoryManager< T >::memcpyHostToDevice ( int  d,
device_pointer  dDestPointer,
const host_pointer  hSrcPointer,
size_t  n 
)
static
template<class T>
static void sofa::helper::MemoryManager< T >::memsetDevice ( int  d,
device_pointer  dDestPointer,
int  value,
size_t  n 
)
static
template<class T>
static void sofa::helper::MemoryManager< T >::memsetHost ( host_pointer  hPointer,
int  value,
size_t  n 
)
inlinestatic
template<class T>
static device_pointer sofa::helper::MemoryManager< T >::null ( )
inlinestatic
template<class T>
static int sofa::helper::MemoryManager< T >::numDevices ( )
static

Enum details

template<class T>
anonymous enum
Enumerator
MAX_DEVICES 
template<class T>
anonymous enum
Enumerator
BSIZE 
template<class T>
anonymous enum
Enumerator
SUPPORT_GL_BUFFER