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

get_image_allocator

Creates a new base_allocator for use in an image object


static unique_ptr_class<cl::sycl::detail::base_allocator> get_image_allocator(size_t elemSizeMultiplier, AllocatorT allocator)
(1)
  1. Creates a new base_allocator for use in an image object
    Parameters:
    • size_t elemSizeMultiplier : 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