Skip to main content

tensor_recv

Function tensor_recv 

Source
pub unsafe fn tensor_recv(freg: u8, funct: ReduceFunct, count: u8, source: u16)
Expand description

Initiate an asynchronous TensorRecv.

Receives count FP registers from the Minion identified by source and combines them with the local FP registers starting at freg using the operation specified by funct. This is the matching receive primitive for tensor_send.

§Parameters

  • freg: Starting local FP register index (0..=31).
  • funct: Combination operation applied to received and local values.
  • count: Number of FP registers to receive (0..=127); must match the sender’s count.
  • source: Source Minion ID (SOURCE field, bits 15:3 of xs).

§Safety

  • The partner hart must have called tensor_send before this retires.
  • Must be called from the primary hart of the Minion.