Skip to main content

USM_DEFAULT_ALIGNMENT

Constant USM_DEFAULT_ALIGNMENT 

Source
pub const USM_DEFAULT_ALIGNMENT: u64 = 64;
Expand description

Minimum alignment Level Zero guarantees for any USM allocation (bytes).

The L0 spec mandates allocations are at least 8-byte aligned; intel-compute -runtime returns 64-byte-aligned pointers in practice. We default to 64 so SIMD16 float loads never straddle a cache line.