copy_dest_rows
-
void ckernel::copy_dest_rows(uint32_t idst_out, uint32_t out_band, uint32_t idst_in, uint32_t in_band)
-
Copies one 4-row band, all 32 columns, from the tile in idst_in to the tile in idst_out in the DST register buffer: rows 4 * in_band .. 4 * in_band + 3 of the source land in rows 4 * out_band .. 4 * out_band + 3 of the target. Every other row of the target keeps its bits, and the copy is bit-exact (NaN payloads, the sign of zero and denormals included: raw loads and stores). The source and target may be the same tile. Bands 0..3 are the tile’s upper half (faces 0 and 1), bands 4..7 the lower half (faces 2 and 3), so a 16x32 tile has bands 0..3.
The DST register buffer must be in acquired state via tile_regs_acquire call, and copy_dest_values_init must have run before. This call is blocking and is only available on the compute engine. Not supported on Quasar: a kernel that calls it fails to build.
Return value: None
Argument Description
idst_out The index of the tile in DST register buffer written to
out_band The 4-row band of that tile written: rows 4 * out_band .. + 3
idst_in The index of the tile in DST register buffer read from
in_band The 4-row band of that tile read: rows 4 * in_band .. + 3
-
void ckernel::copy_dest_row(uint32_t idst_out, uint32_t to_row, uint32_t idst_in, uint32_t from_row)
-
Copies one row, all 32 columns, from the tile in idst_in to the tile in idst_out in the DST register buffer: row from_row of the source lands in row to_row of the target. Every other row of the target keeps its bits, and the copy is bit-exact (NaN payloads, the sign of zero and denormals included: raw loads and stores). The source and target may be the same tile. Rows 0..15 are the tile’s upper half (faces 0 and 1), 16..31 the lower half, so a 16x32 tile has rows 0..15.
The DST register buffer must be in acquired state via tile_regs_acquire call, and copy_dest_values_init must have run before. This call is blocking and is only available on the compute engine. Not supported on Quasar: a kernel that calls it fails to build.
Return value: None
Argument Description
idst_out The index of the tile in DST register buffer written to
to_row The row of that tile written
idst_in The index of the tile in DST register buffer read from
from_row The row of that tile read