Correct ULT

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2021-01-05 16:31:41 +00:00
committed by Compute-Runtime-Automation
parent 14438484d2
commit 5c63929473

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2017-2020 Intel Corporation
* Copyright (C) 2017-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -50,6 +50,10 @@ struct TwoOOQsTwoDependentWalkers : public HelloWorldTest<OOQFixtureFactory>,
cl_event event1 = nullptr;
cl_event event2 = nullptr;
auto &commandStream = pCmdQ->getGpgpuCommandStreamReceiver().getCS(1024);
auto pCommandStreamBuffer = reinterpret_cast<char *>(commandStream.getCpuBase());
std::fill(pCommandStreamBuffer + commandStream.getUsed(), pCommandStreamBuffer + commandStream.getMaxAvailableSpace(), 0);
auto retVal = pCmdQ->enqueueKernel(
pKernel,
workDim,
@@ -67,6 +71,10 @@ struct TwoOOQsTwoDependentWalkers : public HelloWorldTest<OOQFixtureFactory>,
pCmdQ2 = createCommandQueue(pClDevice, CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE);
ASSERT_NE(nullptr, pCmdQ2);
auto &commandStream2 = pCmdQ2->getGpgpuCommandStreamReceiver().getCS(1024);
auto pCommandStreamBuffer2 = reinterpret_cast<char *>(commandStream2.getCpuBase());
std::fill(pCommandStreamBuffer2 + commandStream2.getUsed(), pCommandStreamBuffer2 + commandStream2.getMaxAvailableSpace(), 0);
retVal = pCmdQ2->enqueueKernel(
pKernel,
workDim,