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

#include <level_zero/pi_level_zero.hpp>

Inheritance diagram for USMSharedMemoryAlloc:
Collaboration diagram for USMSharedMemoryAlloc:

Public Member Functions

 USMSharedMemoryAlloc (pi_context Ctx, pi_device Dev)
- 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 413 of file pi_level_zero.hpp.

Constructor & Destructor Documentation

◆ USMSharedMemoryAlloc()

USMSharedMemoryAlloc::USMSharedMemoryAlloc ( pi_context  Ctx,
pi_device  Dev 

Definition at line 420 of file pi_level_zero.hpp.

Member Function Documentation

◆ allocateImpl()

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

Implements USMMemoryAllocBase.

Definition at line 7740 of file pi_level_zero.cpp.

References _pi_queue::Context, _pi_queue::Device, and USMSharedAllocImpl().

◆ getMemTypeImpl()

MemType USMSharedMemoryAlloc::getMemTypeImpl ( )

Implements USMMemoryAllocBase.

Definition at line 7764 of file pi_level_zero.cpp.

References Shared.

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