DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::ext::oneapi::experimental::physical_mem Class Reference

#include <sycl/ext/oneapi/virtual_mem/physical_mem.hpp>

Inheritance diagram for sycl::_V1::ext::oneapi::experimental::physical_mem:
Collaboration diagram for sycl::_V1::ext::oneapi::experimental::physical_mem:

Public Member Functions

 physical_mem (const device &SyclDevice, const context &SyclContext, size_t NumBytes)
 
 physical_mem (const queue &SyclQueue, size_t NumBytes)
 
 physical_mem (const physical_mem &rhs)=default
 
 physical_mem (physical_mem &&rhs)=default
 
physical_memoperator= (const physical_mem &rhs)=default
 
physical_memoperator= (physical_mem &&rhs)=default
 
 ~physical_mem () noexcept(false)
 
bool operator== (const physical_mem &rhs) const
 
bool operator!= (const physical_mem &rhs) const
 
void * map (uintptr_t Ptr, size_t NumBytes, address_access_mode Mode, size_t Offset=0) const
 
context get_context () const
 
device get_device () const
 
size_t size () const noexcept
 

Friends

template<class T >
sycl::detail::createSyclObjFromImpl (decltype(T::impl) ImplObj)
 

Detailed Description

Definition at line 29 of file physical_mem.hpp.

Constructor & Destructor Documentation

◆ physical_mem() [1/4]

sycl::_V1::ext::oneapi::experimental::physical_mem::physical_mem ( const device SyclDevice,
const context SyclContext,
size_t  NumBytes 
)

Definition at line 16 of file physical_mem.cpp.

References sycl::_V1::device::has().

◆ physical_mem() [2/4]

sycl::_V1::ext::oneapi::experimental::physical_mem::physical_mem ( const queue SyclQueue,
size_t  NumBytes 
)
inline

Definition at line 35 of file physical_mem.hpp.

◆ physical_mem() [3/4]

sycl::_V1::ext::oneapi::experimental::physical_mem::physical_mem ( const physical_mem rhs)
default

◆ physical_mem() [4/4]

sycl::_V1::ext::oneapi::experimental::physical_mem::physical_mem ( physical_mem &&  rhs)
default

◆ ~physical_mem()

sycl::_V1::ext::oneapi::experimental::physical_mem::~physical_mem ( )
inlinenoexcept

Definition at line 45 of file physical_mem.hpp.

Member Function Documentation

◆ get_context()

context sycl::_V1::ext::oneapi::experimental::physical_mem::get_context ( ) const

Definition at line 32 of file physical_mem.cpp.

◆ get_device()

device sycl::_V1::ext::oneapi::experimental::physical_mem::get_device ( ) const

Definition at line 33 of file physical_mem.cpp.

◆ map()

void * sycl::_V1::ext::oneapi::experimental::physical_mem::map ( uintptr_t  Ptr,
size_t  NumBytes,
address_access_mode  Mode,
size_t  Offset = 0 
) const

Definition at line 27 of file physical_mem.cpp.

References sycl::_V1::Mode.

◆ operator!=()

bool sycl::_V1::ext::oneapi::experimental::physical_mem::operator!= ( const physical_mem rhs) const
inline

Definition at line 48 of file physical_mem.hpp.

◆ operator=() [1/2]

physical_mem& sycl::_V1::ext::oneapi::experimental::physical_mem::operator= ( const physical_mem rhs)
default

◆ operator=() [2/2]

physical_mem& sycl::_V1::ext::oneapi::experimental::physical_mem::operator= ( physical_mem &&  rhs)
default

◆ operator==()

bool sycl::_V1::ext::oneapi::experimental::physical_mem::operator== ( const physical_mem rhs) const
inline

Definition at line 47 of file physical_mem.hpp.

◆ size()

size_t sycl::_V1::ext::oneapi::experimental::physical_mem::size ( ) const
noexcept

Definition at line 34 of file physical_mem.cpp.

Friends And Related Function Documentation

◆ sycl::detail::createSyclObjFromImpl

template<class T >
T sycl::detail::createSyclObjFromImpl ( decltype(T::impl)  ImplObj)
friend

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