OpenCL C++ Bindings
Loading...
Searching...
No Matches
cl::SVMAllocator< void, SVMTrait > Class Template Reference

Classes

struct  rebind
 

Public Types

typedef void value_type
 
typedef value_type * pointer
 
typedef const value_type * const_pointer
 
typedef void value_type
 
typedef value_type * pointer
 
typedef const value_type * const_pointer
 
typedef value_type & reference
 
typedef const value_type & const_reference
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 

Public Member Functions

 SVMAllocator (cl::Context context)
 
 SVMAllocator (const SVMAllocator &other)
 
 SVMAllocator (const SVMAllocator< U, SVMTrait > &other)
 
pointer address (reference r) noexcept
 
const_pointer address (const_reference r) noexcept
 
pointer allocate (size_type size, typename cl::SVMAllocator< void, SVMTrait >::const_pointer=0, bool map=true)
 
void deallocate (pointer p, size_type)
 
size_type max_size () const noexcept
 
void construct (U *p, Args &&... args)
 
void destroy (U *p)
 
bool operator== (SVMAllocator const &rhs)
 
bool operator!= (SVMAllocator const &a)
 

Detailed Description

template<class SVMTrait>
class cl::SVMAllocator< void, SVMTrait >

Definition at line 4212 of file opencl.hpp.

Member Typedef Documentation

◆ const_pointer [1/2]

typedef const value_type* cl::SVMAllocator< void, SVMTrait >::const_pointer

Definition at line 4067 of file opencl.hpp.

◆ const_pointer [2/2]

template<class SVMTrait>
typedef const value_type* cl::SVMAllocator< void, SVMTrait >::const_pointer

Definition at line 4216 of file opencl.hpp.

◆ const_reference

typedef const value_type& cl::SVMAllocator< void, SVMTrait >::const_reference

Definition at line 4069 of file opencl.hpp.

◆ difference_type

typedef std::ptrdiff_t cl::SVMAllocator< void, SVMTrait >::difference_type

Definition at line 4071 of file opencl.hpp.

◆ pointer [1/2]

typedef value_type* cl::SVMAllocator< void, SVMTrait >::pointer

Definition at line 4066 of file opencl.hpp.

◆ pointer [2/2]

template<class SVMTrait>
typedef value_type* cl::SVMAllocator< void, SVMTrait >::pointer

Definition at line 4215 of file opencl.hpp.

◆ reference

typedef value_type& cl::SVMAllocator< void, SVMTrait >::reference

Definition at line 4068 of file opencl.hpp.

◆ size_type

typedef std::size_t cl::SVMAllocator< void, SVMTrait >::size_type

Definition at line 4070 of file opencl.hpp.

◆ value_type [1/2]

typedef void cl::SVMAllocator< void, SVMTrait >::value_type

Definition at line 4065 of file opencl.hpp.

◆ value_type [2/2]

template<class SVMTrait>
typedef void cl::SVMAllocator< void, SVMTrait >::value_type

Definition at line 4214 of file opencl.hpp.

Constructor & Destructor Documentation

◆ SVMAllocator() [1/4]

cl::SVMAllocator< void, SVMTrait >::SVMAllocator ( )
inline

Definition at line 4082 of file opencl.hpp.

◆ SVMAllocator() [2/4]

cl::SVMAllocator< void, SVMTrait >::SVMAllocator ( cl::Context context)
inlineexplicit

Definition at line 4087 of file opencl.hpp.

◆ SVMAllocator() [3/4]

cl::SVMAllocator< void, SVMTrait >::SVMAllocator ( const SVMAllocator< void, SVMTrait > & other)
inline

Definition at line 4093 of file opencl.hpp.

◆ SVMAllocator() [4/4]

cl::SVMAllocator< void, SVMTrait >::SVMAllocator ( const SVMAllocator< U, SVMTrait > & other)
inline

Definition at line 4099 of file opencl.hpp.

◆ ~SVMAllocator()

cl::SVMAllocator< void, SVMTrait >::~SVMAllocator ( )
inline

Definition at line 4104 of file opencl.hpp.

Member Function Documentation

◆ address() [1/2]

const_pointer cl::SVMAllocator< void, SVMTrait >::address ( const_reference r)
inlinenoexcept

Definition at line 4113 of file opencl.hpp.

◆ address() [2/2]

pointer cl::SVMAllocator< void, SVMTrait >::address ( reference r)
inlinenoexcept

Definition at line 4108 of file opencl.hpp.

◆ allocate()

pointer cl::SVMAllocator< void, SVMTrait >::allocate ( size_type size,
typename cl::SVMAllocator< void, SVMTrait >::const_pointer = 0,
bool map = true )
inline

Allocate an SVM pointer.

If the allocator is coarse-grained, this will take ownership to allow containers to correctly construct data in place.

Definition at line 4124 of file opencl.hpp.

◆ construct()

void cl::SVMAllocator< void, SVMTrait >::construct ( U * p,
Args &&... args )
inline

Definition at line 4185 of file opencl.hpp.

◆ deallocate()

void cl::SVMAllocator< void, SVMTrait >::deallocate ( pointer p,
size_type  )
inline

Definition at line 4162 of file opencl.hpp.

◆ destroy()

void cl::SVMAllocator< void, SVMTrait >::destroy ( U * p)
inline

Definition at line 4191 of file opencl.hpp.

◆ max_size()

size_type cl::SVMAllocator< void, SVMTrait >::max_size ( ) const
inlinenoexcept

Return the maximum possible allocation size. This is the minimum of the maximum sizes of all devices in the context.

Definition at line 4171 of file opencl.hpp.

◆ operator!=()

bool cl::SVMAllocator< void, SVMTrait >::operator!= ( SVMAllocator< void, SVMTrait > const & a)
inline

Definition at line 4204 of file opencl.hpp.

◆ operator==()

bool cl::SVMAllocator< void, SVMTrait >::operator== ( SVMAllocator< void, SVMTrait > const & rhs)
inline

Returns true if the contexts match.

Definition at line 4199 of file opencl.hpp.

Friends And Related Symbol Documentation

◆ SVMAllocator [1/2]

friend class SVMAllocator
friend

Definition at line 4080 of file opencl.hpp.

◆ SVMAllocator [2/2]

template<class SVMTrait>
template<typename U, typename V>
friend class SVMAllocator
friend

Definition at line 4225 of file opencl.hpp.


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