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

#include <level_zero/pi_level_zero.hpp>

Inheritance diagram for USMSharedReadOnlyMemoryAlloc:
Collaboration diagram for USMSharedReadOnlyMemoryAlloc:

Public Member Functions

 USMSharedReadOnlyMemoryAlloc (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 425 of file pi_level_zero.hpp.

Constructor & Destructor Documentation

◆ USMSharedReadOnlyMemoryAlloc()

USMSharedReadOnlyMemoryAlloc::USMSharedReadOnlyMemoryAlloc ( pi_context  Ctx,
pi_device  Dev 

Definition at line 432 of file pi_level_zero.hpp.

Member Function Documentation

◆ allocateImpl()

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

Implements USMMemoryAllocBase.

Definition at line 7746 of file pi_level_zero.cpp.

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

◆ getMemTypeImpl()

MemType USMSharedReadOnlyMemoryAlloc::getMemTypeImpl ( )

Implements USMMemoryAllocBase.

Definition at line 429 of file pi_level_zero.hpp.

References SharedReadOnly.

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