Skip to content

Commit d7e8b92

Browse files
bisingha-xilinxBikash Singha
andauthored
fix for CR-1254182 destroying the aied threads before destroyin hwctx (#9372)
Signed-off-by: Bikash Singha <bisingha@xcobisingha40x.xlnx.xilinx.com> Co-authored-by: Bikash Singha <bisingha@xcobisingha40x.xlnx.xilinx.com>
1 parent bb3d960 commit d7e8b92

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/runtime_src/core/edge/user/hwctx_object.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ hwctx_object::get_aied() const
4343
hwctx_object::
4444
~hwctx_object()
4545
{
46+
#ifdef XRT_ENABLE_AIE
47+
// explicitly destroy the aied before destroying the hw context
48+
m_aied.reset();
49+
#endif
4650
try {
4751
m_shim->destroy_hw_context(m_slot_idx);
4852
}

0 commit comments

Comments
 (0)