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

get_local_allocator

Creates a new base_allocator for use in a local buffer object


static unique_ptr_class<cl::sycl::detail::base_allocator> get_local_allocator(size_t elementSize, AllocatorT allocator)
(1)
  1. Creates a new base_allocator for use in a local buffer object
    Parameters:
    • size_t elementSize : When the allocation is made, the allocation size
    • AllocatorT allocator : User-supplied allocator instance to be wrapped
    Returns: base_allocator wrapping the user supplied allocator

syclreference.com — SYCL Reference Pages

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