cupvaTensorDataFlowOpen#

Defined in src/device/vpu_runtime/include/cupva_device/tensor_dataflow.h

inline void cupvaTensorDataFlowOpen(
TDFHandler &handler,
void *vmemBuffer,
)#

Open a TDF.

Using acquire/release semantics with TDF is a simpler way to access TDF tiles, where the same semantics work regardless of layout.

With the different semantics, user does not have a guarantee for when the underlying DMA engine is active. From DataFlowPhase perspective, an TDF using acquire/release semantics must be assumed to be active immediately after the call to open until the call to close.

Pointers passed to this function must be valid and must not be NULL. Failure to do so will result in undefined behavior.

Parameters:
  • handler – The reference to the TDFHandler object

  • vmemBuffer – Buffer to bind the handler to. Should match the buffer passed to TensorDataFlow::vmemBuffer