Skip to content

Commit

Permalink
fix issue for wait
Browse files Browse the repository at this point in the history
  • Loading branch information
yifei committed Nov 20, 2019
1 parent f2a2639 commit fdf06c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions L3/include/sw/xf_blas/host.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fdf06c1

Please sign in to comment.