mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 10:26:29 +08:00
committed by
Compute-Runtime-Automation
parent
14438484d2
commit
5c63929473
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user