pub const PAGE_ALIGNMENT: u32 = 4096;Expand description
Recommended alignment for GPU, IPC, and RDMA buffers (one host page = 4096 bytes).
Buffers shared across process boundaries (IPC) or placed in device memory
(GPU) SHOULD be aligned to at least this value. Writers targeting RDMA MUST
set alignment to at least 4096.
See docs/spec/buffer-protocol.md § Page Alignment for GPU and IPC.
§Examples
use hurray_core::PAGE_ALIGNMENT;
assert_eq!(PAGE_ALIGNMENT, 4096);