MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / aligned_alloc_host

Function aligned_alloc_host

include/hipSYCL/sycl/usm.hpp:180–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180inline void *aligned_alloc_host(std::size_t alignment, std::size_t num_bytes,
181 const context &ctx,
182 const property_list &propList = {}) {
183 rt::allocation_hints hints = create_hints_from_proplist(propList);
184 return rt::allocate_host(detail::select_usm_allocator(ctx), alignment,
185 num_bytes, hints);
186}
187
188template <typename T>
189T *aligned_alloc_host(std::size_t alignment, size_t count, const context &ctx,

Callers 1

aligned_allocFunction · 0.85

Calls 4

allocate_hostFunction · 0.85
select_usm_allocatorFunction · 0.85
get_contextMethod · 0.45

Tested by

no test coverage detected