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

Allocators

Types

Type Definition Notes
buffer_allocator
cl::sycl::default_allocator
default_allocator
detail::aligned_mem::aligned_allocator

Default SYCL allocator uses the aligned allocated, but also removes the constness of the type.

image_allocator
cl::sycl::default_allocator

Classes

aligned_allocator

An allocator that can allocate memory aligned to a certain alignment boundary with the final allocated size a multiple of some required size.

base_allocator

Forward calls from the runtime-side to the user-defined allocator. This allows the internal runtime methods to call the user-defined typed allocator without passing the template tag. The isMapAllocator is used internally to determine if the allocator is a map-based one, which will enable some optimizations if possible.

make_base_allocator<T, AllocatorT>

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

wrapped_allocator<AllocatorT>

Typed derived class for a base allocator that holds an instance to an user-defined allocator.

Functions

allocate

Allocates aligned data.

cast_base_allocator

Retrieves the original user-supplied allocator from the stored detail allocator object.

clone_data

MISSING

deallocate

Deallocates aligned data.

get_aligned_size

Calculates the size that needs to be allocated for the memory to be properly aligned.

get_default_alignment

Retrieves the default alignment boundary

get_default_required_size_multiplier

Retrieves the default required size multiplier

is_aligned

Checks whether the pointer points to aligned data

syclreference.com — SYCL Reference Pages

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