curfil  ..
 All Classes Functions Variables Typedefs Friends Groups Pages
Public Member Functions | Static Public Attributes | List of all members
cuv::pooled_cuda_allocator Class Reference

allocator that naively pools device and host memory More...

#include <allocators.hpp>

Inheritance diagram for cuv::pooled_cuda_allocator:
cuv::allocator

Public Member Functions

 pooled_cuda_allocator (const std::string &_name="")
virtual void garbage_collection ()
virtual void alloc (void **ptr, size_t memsize, size_t valueSize, host_memory_space)
virtual void alloc (void **ptr, size_t memsize, size_t valueSize, dev_memory_space)
virtual void alloc2d (void **ptr, size_t &pitch, size_t height, size_t width, size_t valueSize, host_memory_space)
virtual void alloc2d (void **ptr, size_t &pitch, size_t height, size_t width, size_t valueSize, dev_memory_space)
virtual void dealloc (void **ptr, host_memory_space)
virtual void dealloc (void **ptr, dev_memory_space)
template<class memory_space >
size_t pool_free_count (memory_space m) const
template<class memory_space >
size_t pool_size (memory_space m) const
template<class memory_space >
size_t pool_count (memory_space m) const
size_t pool_free_count () const
size_t pool_size () const
size_t pool_count () const

Static Public Attributes

static const size_t MIN_SIZE_HOST = 8192
static const size_t MIN_SIZE_DEV = 1

Detailed Description

allocator that naively pools device and host memory

Definition at line 103 of file allocators.hpp.


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