20 template<
typename TAlignment>
28 template<
typename T,
typename TAlignment>
33 std::size_t
const& sizeElems) -> T*
35 #if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) || defined(ALPAKA_ACC_GPU_HIP_ENABLED)
46 constexpr
size_t minAlignement = TAlignment::value;
53 template<
typename T,
typename TAlignment>
58 #if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) || defined(ALPAKA_ACC_GPU_HIP_ENABLED)
61 constexpr
size_t minAlignement = TAlignment::value;
63 core::alignedFree(minAlignement,
const_cast<void*
>(
reinterpret_cast<void const*
>(ptr)));
The CPU boost aligned allocator.
ALPAKA_FN_INLINE ALPAKA_FN_HOST void alignedFree(size_t alignment, void *ptr)
ALPAKA_FN_INLINE ALPAKA_FN_HOST auto alignedAlloc(size_t alignment, size_t size) -> void *
The alpaka accelerator library.
Tag used in class inheritance hierarchies that describes that a specific interface (TInterface) is im...
static ALPAKA_FN_HOST auto free(AllocCpuAligned< TAlignment > const &, T const *const ptr) -> void
static ALPAKA_FN_HOST auto malloc(AllocCpuAligned< TAlignment > const &, std::size_t const &sizeElems) -> T *
The memory allocation trait.