noc_async_write_shard
-
template<typename DSpec>
void noc_async_write_shard(const uint32_t shard_id, const TensorAccessor<DSpec> &s, std::uint32_t src_local_l1_addr, uint8_t noc = noc_index)
-
Initiates an asynchronous write of a shard from a local L1 address to a destination noc address. The size of the transaction and the destination address are determined by the TensorAccessor object. This function only works for sharded tensors.
Return value: None
Argument
Description
Type
Valid Range
Required
shard_id
Row-major index of a shard in the sharded tensor
uint32_t
Any uint32_t number
True
s
TensorAccessor object
TensorAccessor
Any TensorAccessor object, refer to tensor_accessor.h
True
src_local_l1_addr
Source address in local L1 memory
uint32_t
0..1MB
True
noc
Which NOC to use for the transaction
uint8_t
0 or 1
False