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

#include <level_zero/pi_level_zero.hpp>

Inheritance diagram for USMHostMemoryAlloc:
Collaboration diagram for USMHostMemoryAlloc:

Public Member Functions

 USMHostMemoryAlloc (pi_context Ctx)
- Public Member Functions inherited from USMMemoryAllocBase
 USMMemoryAllocBase (pi_context Ctx, pi_device Dev)
void * allocate (size_t Size) override final
void * allocate (size_t Size, size_t Alignment) override final
void deallocate (void *Ptr, bool OwnZeMemHandle) override final
MemType getMemType () override final
- Public Member Functions inherited from SystemMemory
virtual ~SystemMemory ()=default

Protected Member Functions

pi_result allocateImpl (void **ResultPtr, size_t Size, pi_uint32 Alignment) override
MemType getMemTypeImpl () override

Additional Inherited Members

- Protected Attributes inherited from USMMemoryAllocBase
pi_context Context
pi_device Device

Detailed Description

Definition at line 267 of file pi_level_zero.hpp.

Constructor & Destructor Documentation

◆ USMHostMemoryAlloc()

USMHostMemoryAlloc::USMHostMemoryAlloc ( pi_context  Ctx)

Definition at line 274 of file pi_level_zero.hpp.

Member Function Documentation

◆ allocateImpl()

pi_result USMHostMemoryAlloc::allocateImpl ( void **  ResultPtr,
size_t  Size,
pi_uint32  Alignment 

Implements USMMemoryAllocBase.

Definition at line 8016 of file pi_level_zero.cpp.

References _pi_queue::Context, and USMHostAllocImpl().

◆ getMemTypeImpl()

MemType USMHostMemoryAlloc::getMemTypeImpl ( )

Implements USMMemoryAllocBase.

Definition at line 8025 of file pi_level_zero.cpp.

References Host.

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