CUV  0.9.201304091348
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
cuv::allocator< value_type, size_type, memory_space_type > Struct Template Reference

Allocator allows allocation, deallocation and copying depending on memory_space_type. More...

#include <accessors.hpp>

Public Member Functions

void alloc (value_type **ptr, size_type memsize) const
 allocate memory
void alloc2d (value_type **ptr, size_type &pitch, size_type height, size_type width) const
 allocate memory
void dealloc (value_type **ptr) const
 free memory
void copy (value_type *dst, const value_type *src, size_type size, host_memory_space)
 copy from host
template<class value_type2 >
void copy (value_type *dst, const value_type2 *src, size_type size, dev_memory_space)
 copy from host_memory_space
void copy2d (value_type *dst, const value_type *src, size_type dpitch, size_type spitch, size_type h, size_type w, host_memory_space)
 copy from host_memory_space
void copy2d (value_type *dst, const value_type *src, size_type dpitch, size_type spitch, size_type h, size_type w, dev_memory_space)
 copy from dev_memory_space
void alloc (const value_type **ptr, size_type memsize) const
 const variant of the above
void dealloc (const value_type **ptr) const
 const variant of the above
void copy (const value_type *dst, const value_type *src, size_type size, host_memory_space) const
 this throws an assertion, it should never be called
void copy (const value_type *dst, const value_type *src, size_type size, dev_memory_space) const

Detailed Description

template<class value_type, class size_type, class memory_space_type>
struct cuv::allocator< value_type, size_type, memory_space_type >

Allocator allows allocation, deallocation and copying depending on memory_space_type.

Definition at line 14 of file accessors.hpp.

Member Function Documentation

template<class value_type, class size_type, class memory_space_type>
template<class value_type2 >
void cuv::allocator< value_type, size_type, memory_space_type >::copy ( value_type *  dst,
const value_type2 *  src,
size_type  size,
dev_memory_space   
)

copy from host_memory_space

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.copy from device to device when valuetype differs


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