49namespace sham::details {
65 template<USMKindTarget target>
68 std::shared_ptr<DeviceScheduler> dev_sched,
69 std::optional<size_t> alignment = std::nullopt);
78 template<USMKindTarget target>
79 void release_usm_ptr(USMPtrHolder<target> &&usm_ptr_hold, details::BufferEventHandler &&events);
This file contains the declaration of the USMPtrHolder class.
This file contains the methods to actually allocate memory.
void release_usm_ptr(USMPtrHolder< target > &&usm_ptr_hold, details::BufferEventHandler &&events)
Release a USM pointer.
USMPtrHolder< target > create_usm_ptr(size_t size, std::shared_ptr< DeviceScheduler > dev_sched, std::optional< size_t > alignment=std::nullopt)
Create a USM pointer with at least the given size in bytes.
This file contains the class definition for BufferEventHandler.