#include <sycl/usm/usm_allocator.hpp>
Classes | |
struct | rebind |
Public Types | |
using | value_type = T |
using | propagate_on_container_copy_assignment = std::true_type |
using | propagate_on_container_move_assignment = std::true_type |
using | propagate_on_container_swap = std::true_type |
Public Member Functions | |
usm_allocator ()=delete | |
usm_allocator (const context &Ctxt, const device &Dev, const property_list &PropList={}) | |
usm_allocator (const queue &Q, const property_list &PropList={}) | |
usm_allocator (const usm_allocator &)=default | |
usm_allocator (usm_allocator &&) noexcept=default | |
usm_allocator & | operator= (const usm_allocator &Other) |
usm_allocator & | operator= (usm_allocator &&Other) |
template<class U > | |
usm_allocator (const usm_allocator< U, AllocKind, Alignment > &Other) noexcept | |
T * | allocate (size_t NumberOfElements, const detail::code_location CodeLoc=detail::code_location::current()) |
Allocates memory. More... | |
void | deallocate (T *Ptr, size_t, const detail::code_location CodeLoc=detail::code_location::current()) |
Deallocates memory. More... | |
template<typename Property > | |
bool | has_property () const noexcept |
template<typename Property > | |
Property | get_property () const |
Friends | |
template<class U , usm::alloc AllocKindU, size_t AlignmentU> | |
class | usm_allocator |
template<class U , usm::alloc AllocKindU, size_t AlignmentU> | |
bool | operator== (const usm_allocator< T, AllocKind, Alignment > &One, const usm_allocator< U, AllocKindU, AlignmentU > &Two) |
template<class U , usm::alloc AllocKindU, size_t AlignmentU> | |
bool | operator!= (const usm_allocator< T, AllocKind, Alignment > &One, const usm_allocator< U, AllocKindU, AlignmentU > &Two) |
Definition at line 25 of file usm_allocator.hpp.
using sycl::_V1::usm_allocator< T, AllocKind, Alignment >::propagate_on_container_copy_assignment = std::true_type |
Definition at line 28 of file usm_allocator.hpp.
using sycl::_V1::usm_allocator< T, AllocKind, Alignment >::propagate_on_container_move_assignment = std::true_type |
Definition at line 29 of file usm_allocator.hpp.
using sycl::_V1::usm_allocator< T, AllocKind, Alignment >::propagate_on_container_swap = std::true_type |
Definition at line 30 of file usm_allocator.hpp.
using sycl::_V1::usm_allocator< T, AllocKind, Alignment >::value_type = T |
Definition at line 27 of file usm_allocator.hpp.
|
delete |
|
inline |
Definition at line 42 of file usm_allocator.hpp.
|
inline |
Definition at line 45 of file usm_allocator.hpp.
|
default |
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 64 of file usm_allocator.hpp.
|
inline |
Allocates memory.
NumberOfElements | is a count of elements to allocate memory for. |
Definition at line 71 of file usm_allocator.hpp.
References sycl::_V1::aligned_alloc().
|
inline |
Deallocates memory.
Ptr | is a pointer to memory being deallocated. |
Size | is a number of elements previously passed to allocate. |
Definition at line 90 of file usm_allocator.hpp.
References sycl::_V1::free().
|
inline |
Definition at line 116 of file usm_allocator.hpp.
References sycl::_V1::property_list::get_property().
|
inlinenoexcept |
Definition at line 112 of file usm_allocator.hpp.
References sycl::_V1::property_list::has_property().
|
inline |
Definition at line 50 of file usm_allocator.hpp.
|
inline |
Definition at line 56 of file usm_allocator.hpp.
|
friend |
Definition at line 106 of file usm_allocator.hpp.
|
friend |
Definition at line 99 of file usm_allocator.hpp.
|
friend |
Definition at line 124 of file usm_allocator.hpp.