CUDA::DeviceMemory Class Reference

Manages CUDA device memory allocation and destruction. More...

#include <MemoryCUDA.h>

Inheritance diagram for CUDA::DeviceMemory:
dsp::Memory Reference::Able Reference::HeapTracked

Public Member Functions

 DeviceMemory (cudaStream_t _stream=0, int _device=0)
 
void * do_allocate (size_t nbytes)
 
void do_free (void *)
 
void do_copy (void *to, const void *from, size_t bytes)
 
void do_zero (void *, size_t)
 
bool on_host () const
 
void set_stream (cudaStream_t _stream)
 
cudaStream_t get_stream ()
 
cudaStream_t get_stream () const
 
int get_device ()
 
int get_device () const
 
- Public Member Functions inherited from Reference::Able
 Able (const Able &)
 
Ableoperator= (const Able &)
 
unsigned get_reference_count () const
 
- Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
 
HeapTrackedoperator= (const HeapTracked &)
 
bool __is_on_heap () const
 

Protected Attributes

cudaStream_t stream
 
int device
 

Additional Inherited Members

- Static Public Member Functions inherited from dsp::Memory
static void * allocate (size_t nbytes)
 
static void free (void *)
 
static void set_manager (Memory *)
 
static Memoryget_manager ()
 
- Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 
- Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 
static void operator delete (void *location, void *ptr)
 
static void operator delete (void *location)
 
static size_t get_heap_queue_size ()
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 
- Static Protected Attributes inherited from dsp::Memory
static Memorymanager = 0
 

Detailed Description

Manages CUDA device memory allocation and destruction.


The documentation for this class was generated from the following files:

Generated using doxygen 1.8.17