Skip to main content

RAW_FUSED_RANK_LIMIT

Constant RAW_FUSED_RANK_LIMIT 

Source
pub const RAW_FUSED_RANK_LIMIT: usize = 8; // 8usize
Expand description

Rank up to which a fused loop nest is stored inline.

It selects the traversal: a layout of at most this many axes replays through the inline loop nest, a longer one through the out-of-line wide loop. It does not decide allocation for the replay_*_raw entries, which allocate nothing at any rank on a serial token (see replay_copy_raw).

The stateless copy_scale_raw family and the compilation of crate::CopyPlan fuse any rank. An original rank above this limit needs one transient fusion scratch buffer there even when the fused layout still fits inline, because fusion happens before the representation is chosen.