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

get_buffer_allocator

Creates a new base_allocator for use in a buffer object


static unique_ptr_class<cl::sycl::detail::base_allocator> get_buffer_allocator(AllocatorT allocator)
(1)
  1. Creates a new base_allocator for use in a buffer object
    Parameters:
    • 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