Memory

Header

Content

CCCL Availability

CUDA Toolkit Availability

aligned_size_t

Defines an extent of bytes with a statically defined alignment.

libcu++ 1.2.0 / CCCL 2.0.0 (in <cuda/memory> since CCCL 3.1.0)

CUDA 11.1

discard_memory

Writes indeterminate values to memory

libcu++ 1.6.0 / CCCL 2.0.0 (in <cuda/memory> since CCCL 3.1.0)

CUDA 11.5

get_device_address

Returns a valid address to a device object

CCCL 2.8.0 (in <cuda/memory> since CCCL 3.1.0)

CUDA 12.9

is_address_from and is_object_from

Check if a pointer or object is from a specific address space

CCCL 3.1.0

CUDA 13.1

is_aligned

Check if a pointer is aligned

CCCL 3.1.0

CUDA 13.1

align_up

Align up a pointer to the specified alignment

CCCL 3.1.0

CUDA 13.1

align_down

Align down a pointer to the specified alignment

CCCL 3.1.0

CUDA 13.1

ptr_rebind

Rebind a pointer to a different type

CCCL 3.1.0

CUDA 13.1