Skip to content

Commit 28c114e

Browse files
committed
[L0] Fix regression on fence host sync
Change-Id: I769212c4e7478959b0e9a126064eb0ab09a3f183 Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
1 parent 6cd5508 commit 28c114e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

level_zero/core/source/fence.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include "shared/source/memory_manager/memory_manager.h"
1212
#include "shared/source/utilities/cpuintrinsics.h"
1313

14+
#include "hw_helpers.h"
15+
1416
namespace L0 {
1517

1618
struct FenceImp : public Fence {
@@ -89,6 +91,8 @@ ze_result_t FenceImp::hostSynchronize(uint32_t timeout) {
8991
return ZE_RESULT_SUCCESS;
9092
}
9193

94+
waitForTaskCountWithKmdNotifyFallbackHelper(cmdQueue->getCsr(), cmdQueue->getTaskCount(), 0, false, false);
95+
9296
if (timeout == 0) {
9397
return queryStatus();
9498
}

0 commit comments

Comments
 (0)