From fdf06c1392d499dc6972a2fa439623665653ec45 Mon Sep 17 00:00:00 2001 From: yifei Date: Tue, 19 Nov 2019 17:34:58 -0800 Subject: [PATCH] fix issue for wait --- L3/include/sw/xf_blas/host.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/L3/include/sw/xf_blas/host.hpp b/L3/include/sw/xf_blas/host.hpp index 75a9b4bebd..cfbdd78cc2 100644 --- a/L3/include/sw/xf_blas/host.hpp +++ b/L3/include/sw/xf_blas/host.hpp @@ -135,13 +135,14 @@ class XFpga { m_baseAddress[p_kernelIndex] >> 32; ecmd->data[XGEMXKERNEL_0_GEMXKERNEL_0_CONTROL_ADDR_P_DDRWR_M_VAL_DATA / 4 + 1] = m_baseAddress[p_kernelIndex] >> 32; - + if (xclExecBuf(m_handle, m_execHandle)) { return false; } + while (ecmd->state == 1){ + while (xclExecWait(m_handle, 1) == 0); - while (xclExecWait(m_handle, 1) == 0) - ; + } m_execHandles.push_back(m_execHandle);