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

allocate

Allocates aligned data.


void * allocate(const size_t requestedSize, const size_t alignment, const size_t requiredSizeMultiplier)
(1)
  1. Allocates aligned data.
    Parameters:
    • const size_t requestedSize : Size in bytes the user requested. May allocate more
    • const size_t alignment : Memory alignment boundary in bytes.
    • const size_t requiredSizeMultiplier : The requirement for the allocation size to be
    Returns: Pointer to allocated aligned data

syclreference.com — SYCL Reference Pages

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