Public Member Functions |
V * | ptr () |
const V * | ptr () const |
size_type | size () const |
size_type | memsize () const |
void | reset (V *p, size_type s) |
| reset information (use with care, for deserialization)
|
| memory (const boost::shared_ptr< allocator > &_allocator) |
| default constructor (just sets ptr to NULL)
|
| memory (value_type *ptr, size_type size, const boost::shared_ptr< allocator > &_allocator, bool owned=true) |
| construct with pointer (takes /ownership/ of this pointer and deletes it when destroyed!)
|
| ~memory () |
| destructor (deallocates the memory)
|
void | dealloc () |
| dellocate space
|
template<class value_type2 , class memory_space > |
void | copy_from (V *dst, const value_type2 *src, size_t size, memory_space m, cudaStream_t stream) |
template<class value_type2 , class memory_space > |
void | copy_from (const value_type2 *src, size_t size, memory_space m, cudaStream_t stream) |
template<class value_type2 , class memory_space > |
void | copy2d_from (V *dst, const value_type2 *src, size_t dpitch, size_t spitch, size_t h, size_t w, memory_space m, cudaStream_t stream) |
template<class value_type2 , class memory_space > |
void | copy2d_from (const value_type2 *src, size_t dpitch, size_t spitch, size_t h, size_t w, memory_space m, cudaStream_t stream) |
template<class V, class M>
class cuv::memory< V, M >
simply keeps a pointer and deallocates it when destroyed
Definition at line 105 of file memory.hpp.