cupvaTensorDataFlowAcquire#
Defined in src/device/vpu_runtime/include/cupva_device/tensor_dataflow.h
-
inline void *cupvaTensorDataFlowAcquire(TDFHandler &handler)#
Acquire a tensor tile for reading/writing.
Call this API when you are ready to read/write to/from a tensor tile. Only one tensor tile may be acquired at a time. No diagnostic is given for failure to ensure that only a single tile is acquired at a time.
- Parameters:
handler – The reference to the TDFHandler object
- Returns:
Pointer to top-left of the tile. A tile is not necessarily contiguous in VMEM, as a circular buffer may be in use.