Skip to main content

host_word

Function host_word 

Source
pub fn host_word(
    p: &SpatialProgram,
    t: &TensorDecl,
    i: usize,
    j: usize,
) -> usize
Expand description

The word of a site’s image of t that holds element (i, j) — tiles in row-major order, a row of tiles at the tensor’s pitch (tensor_pitch), each tile’s elements row-major within it — and so the address a host writes or reads that element at.