noc_async_read_shard

template<typename DSpec>
void noc_async_read_shard(const uint32_t shard_id, const TensorAccessor<DSpec> &s, std::uint32_t dst_local_l1_addr, uint8_t noc = noc_index)

Initiates an asynchronous read of a shard from a source noc address into a local L1 address. The size of the transaction and the source address are determined by the TensorAccessor object. This function only works for sharded tensors.

Return value: None

Argument Description

shard_id Row-major index of a shard in the sharded tensor

s TensorAccessor object

dst_local_l1_addr Destination address in local L1 memory

noc Which NOC to use for the transaction