Memory#
2026-10-23
1 min read time
This page covers the memory extended API, providing pointer alignment, address space, and pointer range utilities.
cuda::aligned_size_t and cuda::discard_memory are not supported in libhipcxx. See Limitations and unsupported APIs.
Header |
Content |
libhipcxx Availability |
|---|---|---|
Returns a valid address to a device object |
libhipcxx 3.0 (in |
|
Check if a pointer or object is from a specific address space |
libhipcxx 3.4 |
|
Check if a pointer is aligned |
libhipcxx 3.4 |
|
Align up a pointer to the specified alignment |
libhipcxx 3.4 |
|
Align down a pointer to the specified alignment |
libhipcxx 3.4 |
|
Rebind a pointer to a different type |
libhipcxx 3.4 |
|
Check if a pointer is in a range |
libhipcxx 3.4 |
|
Check if two ranges overlap |
libhipcxx 3.4 |
|
Check if a pointer is accessible from the host, device, or managed memory |
libhipcxx 3.4 |