NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Methods | List of all members
mgpu::CudaAllocBuckets Class Reference

Detailed description

Definition at line 50 of file mgpualloc.h.

#include <mgpualloc.h>

Inheritance diagram for mgpu::CudaAllocBuckets:
mgpu::CudaAlloc mgpu::CudaBase mgpu::noncopyable

Public Methods

 CudaAllocBuckets (CudaDevice &device)
 
virtual ~CudaAllocBuckets ()
 
virtual cudaError_t Malloc (size_t size, void **p)
 
virtual bool Free (void *p)
 
virtual void Clear ()
 
size_t Allocated () const
 
size_t Committed () const
 
size_t Capacity () const
 
bool SanityCheck () const
 
void SetCapacity (size_t capacity, size_t maxObjectSize)
 
- Public Methods inherited from mgpu::CudaAlloc
virtual ~CudaAlloc ()
 
CudaDeviceDevice ()
 
- Public Methods inherited from mgpu::CudaBase
 CudaBase ()
 
virtual ~CudaBase ()
 
virtual long AddRef ()
 
virtual void Release ()
 

Additional Inherited Members

- Proteced Methods inherited from mgpu::CudaAlloc
 CudaAlloc (CudaDevice &device)
 
- Protected Members inherited from mgpu::CudaAlloc
CudaDevice_device
 

Constructor & Destructor Documentation

mgpu::CudaAllocBuckets::CudaAllocBuckets ( CudaDevice device)
virtual mgpu::CudaAllocBuckets::~CudaAllocBuckets ( )
virtual

Member Function Documentation

size_t mgpu::CudaAllocBuckets::Allocated ( ) const
inline

Definition at line 59 of file mgpualloc.h.

size_t mgpu::CudaAllocBuckets::Capacity ( ) const
inline

Definition at line 61 of file mgpualloc.h.

virtual void mgpu::CudaAllocBuckets::Clear ( )
virtual

Implements mgpu::CudaAlloc.

size_t mgpu::CudaAllocBuckets::Committed ( ) const
inline

Definition at line 60 of file mgpualloc.h.

virtual bool mgpu::CudaAllocBuckets::Free ( void *  p)
virtual

Implements mgpu::CudaAlloc.

virtual cudaError_t mgpu::CudaAllocBuckets::Malloc ( size_t  size,
void **  p 
)
virtual

Implements mgpu::CudaAlloc.

bool mgpu::CudaAllocBuckets::SanityCheck ( ) const
void mgpu::CudaAllocBuckets::SetCapacity ( size_t  capacity,
size_t  maxObjectSize 
)
inline

Definition at line 65 of file mgpualloc.h.


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