| 98 | } |
| 99 | |
| 100 | inline 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 | |
| 108 | template <typename T> |
| 109 | T *aligned_alloc_device(std::size_t alignment, std::size_t count, |
no test coverage detected