Skip to content

Commit

Permalink
graph_object constructor with aieArray instance (#8431)
Browse files Browse the repository at this point in the history
Signed-off-by: Sravankumar allu <[email protected]>
Co-authored-by: Sravankumar allu <[email protected]>
  • Loading branch information
SravanKumarAllu-xilinx and Sravankumar allu authored Sep 20, 2024
1 parent 872153a commit 75f2bc9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/runtime_src/core/edge/user/aie/graph_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ namespace zynqaie {
auto device{xrt_core::get_userpf_device(m_shim)};
auto drv = ZYNQ::shim::handleCheck(device->get_device_handle());

if (!drv->isAieRegistered())
throw xrt_core::error(-EINVAL, "No AIE presented");

aieArray = drv->get_aie_array_shared();
#ifdef XRT_ENABLE_AIE
if (nullptr != m_hwctx)
aieArray = m_hwctx->get_aie_array_shared();
else if (drv->isAieRegistered())
aieArray = drv->get_aie_array_shared();
#endif

id = xrt_core::edge::aie::get_graph_id(device.get(), name, m_hwctx);
if (id == xrt_core::edge::aie::NON_EXIST_ID)
Expand Down

0 comments on commit 75f2bc9

Please sign in to comment.