syclreference.com
  1. SYCL
  2. | API Reference
  3. | Allocators
  4. | make_base_allocator

make_base_allocator<T, AllocatorT>

Creates a pointer to the internal base allocator structure from an instance of an user-defined allocator class.

template <typename T, typename AllocatorT>
struct cl::sycl::detail::make_base_allocator;

Member Functions

get_buffer_allocator

Creates a new base_allocator for use in a buffer object

get_elem_size_multiplier

Calculates the required size multiplier depending on the type of the allocator.

get_image_allocator

Creates a new base_allocator for use in an image object

get_local_allocator

Creates a new base_allocator for use in a local buffer object

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000