DPC++ Runtime
Runtime libraries for oneAPI DPC++
syclcompat::pointer_attributes Class Reference

#include <syclcompat/memory.hpp>

Public Member Functions

void init (const void *ptr, sycl::queue q=get_default_queue())
 
sycl::usm::alloc get_memory_type ()
 
const void * get_device_pointer ()
 
const void * get_host_pointer ()
 
bool is_memory_shared ()
 
unsigned int get_device_id ()
 

Detailed Description

Definition at line 1163 of file memory.hpp.

Member Function Documentation

◆ get_device_id()

unsigned int syclcompat::pointer_attributes::get_device_id ( )
inline

Definition at line 1184 of file memory.hpp.

◆ get_device_pointer()

const void* syclcompat::pointer_attributes::get_device_pointer ( )
inline

Definition at line 1178 of file memory.hpp.

◆ get_host_pointer()

const void* syclcompat::pointer_attributes::get_host_pointer ( )
inline

Definition at line 1180 of file memory.hpp.

◆ get_memory_type()

sycl::usm::alloc syclcompat::pointer_attributes::get_memory_type ( )
inline

Definition at line 1176 of file memory.hpp.

◆ init()

void syclcompat::pointer_attributes::init ( const void *  ptr,
sycl::queue  q = get_default_queue() 
)
inline

Definition at line 1165 of file memory.hpp.

References sycl::_V1::queue::get_context().

◆ is_memory_shared()

bool syclcompat::pointer_attributes::is_memory_shared ( )
inline

Definition at line 1182 of file memory.hpp.


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