Properties of a pointer. Properties of a pointer allocated with malloc_device, malloc_host or malloc_shared.
More...
Properties of a pointer. Properties of a pointer allocated with malloc_device, malloc_host or malloc_shared.
◆ ptr_prop() [1/2]
xpu::ptr_prop::ptr_prop |
( |
| ) |
|
|
delete |
◆ ptr_prop() [2/2]
xpu::ptr_prop::ptr_prop |
( |
const void * |
| ) |
|
|
explicit |
Create a pointer property object from a pointer.
- Parameters
-
ptr | Pointer to the memory. |
◆ backend()
driver_t xpu::ptr_prop::backend |
( |
| ) |
const |
|
inline |
- Returns
- The backend used to allocate the memory.
- See also
- driver_t
◆ device()
- Returns
- The device the memory is allocated on.
◆ is_host()
bool xpu::ptr_prop::is_host |
( |
| ) |
const |
|
inline |
- Returns
- If the memory is allocated on the host.
◆ ptr()
void* xpu::ptr_prop::ptr |
( |
| ) |
const |
|
inline |
◆ type()
- Returns
- The type of the memory.
- See also
- mem_type
The documentation for this class was generated from the following file: