EnqueueReadBuffer
-
template<typename DType>
void tt::tt_metal::v0::EnqueueReadBuffer(CommandQueue &cq, Buffer &buffer, std::vector<DType> &dst, bool blocking, tt::stl::Span<const SubDeviceId> sub_device_ids = {})
-
Reads a buffer from the device
Return value: void
Argument
Description
Type
Valid Range
Required
cq
The command queue object which dispatches the command to the hardware
CommandQueue &
Yes
buffer
The device buffer we are reading from
Buffer & or std::shared_ptr<Buffer>
Yes
dst
The vector where the results that are read will be stored
vector<DType> &
Yes
blocking
Whether or not this is a blocking operation
bool
Only blocking mode supported currently
Yes
sub_device_ids
The sub-device ids to wait for completion on. If empty, waits for all sub-devices
tt::stl::Span<const uint32_t>
No
-
Reads a buffer from the device
Return value: void
Argument
Description
Type
Valid Range
Required
cq
The command queue object which dispatches the command to the hardware
CommandQueue &
Yes
buffer
The device buffer we are reading from
Buffer & or std::shared_ptr<Buffer>
Yes
dst
The memory where the result will be stored
void*
Yes
blocking
Whether or not this is a blocking operation
bool
Only blocking mode supported currently
Yes
sub_device_ids
The sub-device ids to wait for completion on. If empty, waits for all sub-devices
tt::stl::Span<const uint32_t>
No