From 1e526b616a3453ba9714b53180bd4d01cc91e94d Mon Sep 17 00:00:00 2001 From: Bikash Singha <138746529+bisingha-xilinx@users.noreply.github.com> Date: Tue, 27 Aug 2024 16:21:44 +0530 Subject: [PATCH] Removed hw_context flag dependency for edge on xrt.ini (#8372) Signed-off-by: bisingha --- src/runtime_src/core/edge/user/shim.cpp | 1 + src/runtime_src/core/edge/user/shim.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime_src/core/edge/user/shim.cpp b/src/runtime_src/core/edge/user/shim.cpp index 9d6195a963b..ec20e481a12 100644 --- a/src/runtime_src/core/edge/user/shim.cpp +++ b/src/runtime_src/core/edge/user/shim.cpp @@ -1386,6 +1386,7 @@ void shim:: register_xclbin(const xrt::xclbin&){ xclLog(XRT_INFO, "%s: xclbin successfully registered for this device without loading the xclbin", __func__); + hw_context_enable = true; } void diff --git a/src/runtime_src/core/edge/user/shim.h b/src/runtime_src/core/edge/user/shim.h index 95cf7bcd9c5..cb714163fd9 100644 --- a/src/runtime_src/core/edge/user/shim.h +++ b/src/runtime_src/core/edge/user/shim.h @@ -361,7 +361,7 @@ class shim { std::unique_ptr mCmdBOCache; zynq_device *mDev = nullptr; size_t mKernelClockFreq; - bool hw_context_enable = true; + bool hw_context_enable = false; /* * Mapped CU register space for xclRegRead/Write(). We support at most