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

Function aligned_alloc_device

include/hipSYCL/sycl/usm.hpp:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100inline void *aligned_alloc_device(std::size_t alignment, std::size_t num_bytes,
101 const device &dev, const context &ctx,
102 const property_list &propList = {}) {
103 rt::allocation_hints hints = create_hints_from_proplist(propList);
104 return rt::allocate_device(detail::select_device_allocator(dev), alignment,
105 num_bytes, hints);
106}
107
108template <typename T>
109T *aligned_alloc_device(std::size_t alignment, std::size_t count,

Callers 1

aligned_allocFunction · 0.85

Calls 5

allocate_deviceFunction · 0.85
select_device_allocatorFunction · 0.85
get_deviceMethod · 0.45
get_contextMethod · 0.45

Tested by

no test coverage detected