22namespace sham::details {
33 template<USMKindTarget target>
36 const std::shared_ptr<DeviceScheduler> &dev_sched,
37 std::optional<size_t> alignment);
46 template<USMKindTarget target>
47 void internal_free(
void *usm_ptr,
size_t sz,
const std::shared_ptr<DeviceScheduler> &dev_sched);
53 std::string log_mem_perf_info(
const std::shared_ptr<DeviceScheduler> &dev_sched);
This file contains the declaration of the USMPtrHolder class.
void * internal_alloc(size_t sz, const std::shared_ptr< DeviceScheduler > &dev_sched, std::optional< size_t > alignment)
Allocate a USM pointer with at least the given size in bytes.
void internal_free(void *usm_ptr, size_t sz, const std::shared_ptr< DeviceScheduler > &dev_sched)
Free a USM pointer.
MemPerfInfos get_mem_perf_info()
Retrieve the memory performance information.
void reset_mem_info_max()
Reset the memory information for the maximum allocated bytes.
This file contains the class definition for BufferEventHandler.