Shared Buffer Location Constraint - 2025.1 English - UG1603

AI Engine-ML Kernel and Graph Programming Guide (UG1603)

Document ID
UG1603
Release Date
2025-05-29
Version
2025.1 English
Shared buffers location can be constrained by relative constraints or absolute constraints. Following is an example piece of code to constrain shared buffer to absolute locations:
adf::shared_buffer<int32> mtxA,mtxB;
......

adf::location<adf::buffer>(mtxA)=adf::address(/*COL*/6,/*ROW*/0,/*Address*/0);
adf::num_buffers(mtxB)=2;
adf::location<adf::buffer>(mtxB)={adf::address(7,0,0),adf::address(7,0,0x8000)};