DPC++ Runtime
Runtime libraries for oneAPI DPC++
USMAllocContext Class Reference

#include <level_zero/usm_allocator.hpp>

Classes

class  USMAllocImpl
 

Public Member Functions

 USMAllocContext (std::unique_ptr< SystemMemory > memHandle)
 
 ~USMAllocContext ()
 
void * allocate (size_t size)
 
void * allocate (size_t size, size_t alignment)
 
void deallocate (void *ptr, bool OwnZeMemHandle)
 

Detailed Description

Definition at line 26 of file usm_allocator.hpp.

Constructor & Destructor Documentation

◆ USMAllocContext()

USMAllocContext::USMAllocContext ( std::unique_ptr< SystemMemory memHandle)

Definition at line 1052 of file usm_allocator.cpp.

◆ ~USMAllocContext()

USMAllocContext::~USMAllocContext ( )

Member Function Documentation

◆ allocate() [1/2]

void * USMAllocContext::allocate ( size_t  size)

◆ allocate() [2/2]

void * USMAllocContext::allocate ( size_t  size,
size_t  alignment 
)

◆ deallocate()

void USMAllocContext::deallocate ( void *  ptr,
bool  OwnZeMemHandle 
)

The documentation for this class was generated from the following files: