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

get_aligned_size

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


size_t get_aligned_size(const size_t requestedSize, const size_t requiredSizeMultiplier)
(1)
  1. Calculates the size that needs to be allocated for the memory to be properly aligned.
    Parameters:
    • const size_t requestedSize : Size in bytes the user requested. May allocate more
    • const size_t requiredSizeMultiplier : The requirement for the allocation size to be
    Returns: The size in bytes that needs to be allocated.

syclreference.com — SYCL Reference Pages

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