Skip to main content

bytes

Function bytes 

Source
pub fn bytes<E: CubeElement>(len: usize) -> usize
Expand description

Bytes of len elements of E, at least one element (runtimes reject empty allocations).

ยงPanics

If len exceeds MAX_DEVICE_ELEMENTS (kernels index with 32-bit integers): sizes chosen by users are checked earlier with dspk_core::compute::device_elements, so this is a backstop against a silent wrap.