Skip to content

Commit 02f2f22

Browse files
committed
Add profiling support for blitter
Resolves: NEO-4121 Change-Id: I29dfcf07d48100c578cbc432fee4d87dfa18e8f4 Signed-off-by: Lukasz Jobczyk <[email protected]>
1 parent f4ef256 commit 02f2f22

21 files changed

+198
-42
lines changed

opencl/source/command_queue/enqueue_common.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueNonBlocked(
809809
}
810810

811811
if (enqueueProperties.blitPropertiesContainer->size() > 0) {
812-
this->bcsTaskCount = getBcsCommandStreamReceiver()->blitBuffer(*enqueueProperties.blitPropertiesContainer, false);
812+
this->bcsTaskCount = getBcsCommandStreamReceiver()->blitBuffer(*enqueueProperties.blitPropertiesContainer, false, this->isProfilingEnabled());
813813
dispatchFlags.implicitFlush = true;
814814
}
815815

@@ -956,9 +956,16 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueCommandWithoutKernel(
956956
surface->makeResident(getGpgpuCommandStreamReceiver());
957957
}
958958

959+
TimeStampData submitTimeStamp;
960+
if (eventBuilder.getEvent() && isProfilingEnabled() && getGpgpuCommandStreamReceiver().peekTimestampPacketWriteEnabled()) {
961+
this->getDevice().getOSTime()->getCpuGpuTime(&submitTimeStamp);
962+
eventBuilder.getEvent()->setSubmitTimeStamp(&submitTimeStamp);
963+
eventBuilder.getEvent()->getTimestampPacketNodes()->makeResident(getGpgpuCommandStreamReceiver());
964+
}
965+
959966
if (enqueueProperties.operation == EnqueueProperties::Operation::Blit) {
960967
UNRECOVERABLE_IF(!enqueueProperties.blitPropertiesContainer);
961-
this->bcsTaskCount = getBcsCommandStreamReceiver()->blitBuffer(*enqueueProperties.blitPropertiesContainer, false);
968+
this->bcsTaskCount = getBcsCommandStreamReceiver()->blitBuffer(*enqueueProperties.blitPropertiesContainer, false, this->isProfilingEnabled());
962969
}
963970

964971
DispatchFlags dispatchFlags(

opencl/source/event/event.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ cl_int Event::getEventProfilingInfo(cl_profiling_info paramName,
165165
if (DebugManager.flags.ReturnRawGpuTimestamps.get()) {
166166
src = &queueTimeStamp.GPUTimeStamp;
167167
}
168-
169168
srcSize = sizeof(cl_ulong);
170169
break;
171170

opencl/source/helpers/task_information.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ CompletionStamp &CommandComputeKernel::submit(uint32_t taskLevel, bool terminate
204204
*currentTimestampPacketNodes, csrDeps,
205205
commandQueue.getGpgpuCommandStreamReceiver(), bcsCsr);
206206

207-
auto bcsTaskCount = bcsCsr.blitBuffer(kernelOperation->blitPropertiesContainer, false);
207+
auto bcsTaskCount = bcsCsr.blitBuffer(kernelOperation->blitPropertiesContainer, false, commandQueue.isProfilingEnabled());
208208
commandQueue.updateBcsTaskCount(bcsTaskCount);
209209
}
210210

@@ -290,7 +290,7 @@ void CommandWithoutKernel::dispatchBlitOperation() {
290290
blitProperties.csrDependencies.push_back(&timestampPacketDependencies->barrierNodes);
291291
blitProperties.outputTimestampPacket = currentTimestampPacketNodes->peekNodes()[0];
292292

293-
auto bcsTaskCount = bcsCsr->blitBuffer(kernelOperation->blitPropertiesContainer, false);
293+
auto bcsTaskCount = bcsCsr->blitBuffer(kernelOperation->blitPropertiesContainer, false, commandQueue.isProfilingEnabled());
294294

295295
commandQueue.updateBcsTaskCount(bcsTaskCount);
296296
}

opencl/test/unit_test/command_queue/blit_enqueue_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct BlitEnqueueTests : public ::testing::Test {
4343

4444
BlitPropertiesContainer container;
4545
container.push_back(blitProperties);
46-
bcsCsr->blitBuffer(container, true);
46+
bcsCsr->blitBuffer(container, true, false);
4747

4848
return BlitOperationResult::Success;
4949
}

opencl/test/unit_test/command_queue/enqueue_command_without_kernel_tests.cpp

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "opencl/test/unit_test/fixtures/enqueue_handler_fixture.h"
1717
#include "opencl/test/unit_test/mocks/mock_command_queue.h"
1818
#include "opencl/test/unit_test/mocks/mock_csr.h"
19+
#include "opencl/test/unit_test/mocks/mock_event.h"
1920
#include "opencl/test/unit_test/mocks/mock_execution_environment.h"
2021
#include "opencl/test/unit_test/mocks/mock_graphics_allocation.h"
2122
#include "opencl/test/unit_test/mocks/mock_timestamp_container.h"
@@ -53,6 +54,80 @@ HWTEST_F(EnqueueHandlerTest, GivenCommandStreamWithoutKernelWhenCommandEnqueuedT
5354
EXPECT_EQ(allocation->getTaskCount(mockCmdQ->getGpgpuCommandStreamReceiver().getOsContext().getContextId()), 1u);
5455
}
5556

57+
template <bool enabled>
58+
struct EnqueueHandlerTimestampTest : public EnqueueHandlerTest {
59+
void SetUp() override {
60+
DebugManager.flags.EnableTimestampPacket.set(enabled);
61+
EnqueueHandlerTest::SetUp();
62+
}
63+
64+
void TearDown() override {
65+
EnqueueHandlerTest::TearDown();
66+
}
67+
68+
DebugManagerStateRestore restorer;
69+
};
70+
71+
using EnqueueHandlerTimestampEnabledTest = EnqueueHandlerTimestampTest<true>;
72+
73+
HWTEST_F(EnqueueHandlerTimestampEnabledTest, givenProflingAndTimeStampPacketsEnabledWhenEnqueueCommandWithoutKernelThenSubmitTimeStampIsSet) {
74+
cl_queue_properties properties[3] = {CL_QUEUE_PROPERTIES, CL_QUEUE_PROFILING_ENABLE, 0};
75+
std::unique_ptr<MockCommandQueueHw<FamilyType>> mockCmdQ(new MockCommandQueueHw<FamilyType>(context, pClDevice, properties));
76+
77+
char buffer[64];
78+
std::unique_ptr<MockGraphicsAllocation> allocation(new MockGraphicsAllocation(buffer, sizeof(buffer)));
79+
std::unique_ptr<GeneralSurface> surface(new GeneralSurface(allocation.get()));
80+
EventsRequest eventsRequest(0, nullptr, nullptr);
81+
EventBuilder eventBuilder;
82+
eventBuilder.create<MockEvent<Event>>(mockCmdQ.get(), CL_COMMAND_USER, CompletionStamp::levelNotReady, CompletionStamp::levelNotReady);
83+
auto ev = static_cast<MockEvent<UserEvent> *>(eventBuilder.getEvent());
84+
Surface *surfaces[] = {surface.get()};
85+
auto blocking = true;
86+
TimestampPacketDependencies timestampPacketDependencies;
87+
EnqueueProperties enqueueProperties(false, false, false, true, nullptr);
88+
89+
EXPECT_EQ(ev->submitTimeStamp.CPUTimeinNS, 0u);
90+
EXPECT_EQ(ev->submitTimeStamp.GPUTimeStamp, 0u);
91+
92+
mockCmdQ->enqueueCommandWithoutKernel(surfaces, 1, mockCmdQ->getCS(0), 0, blocking, enqueueProperties, timestampPacketDependencies,
93+
eventsRequest, eventBuilder, 0);
94+
95+
EXPECT_NE(ev->submitTimeStamp.CPUTimeinNS, 0u);
96+
EXPECT_NE(ev->submitTimeStamp.GPUTimeStamp, 0u);
97+
98+
delete ev;
99+
}
100+
101+
using EnqueueHandlerTimestampDisabledTest = EnqueueHandlerTimestampTest<false>;
102+
103+
HWTEST_F(EnqueueHandlerTimestampDisabledTest, givenProflingEnabledTimeStampPacketsDisabledWhenEnqueueCommandWithoutKernelThenSubmitTimeStampIsNotSet) {
104+
cl_queue_properties properties[3] = {CL_QUEUE_PROPERTIES, CL_QUEUE_PROFILING_ENABLE, 0};
105+
std::unique_ptr<MockCommandQueueHw<FamilyType>> mockCmdQ(new MockCommandQueueHw<FamilyType>(context, pClDevice, properties));
106+
107+
char buffer[64];
108+
std::unique_ptr<MockGraphicsAllocation> allocation(new MockGraphicsAllocation(buffer, sizeof(buffer)));
109+
std::unique_ptr<GeneralSurface> surface(new GeneralSurface(allocation.get()));
110+
EventsRequest eventsRequest(0, nullptr, nullptr);
111+
EventBuilder eventBuilder;
112+
eventBuilder.create<MockEvent<Event>>(mockCmdQ.get(), CL_COMMAND_USER, CompletionStamp::levelNotReady, CompletionStamp::levelNotReady);
113+
auto ev = static_cast<MockEvent<UserEvent> *>(eventBuilder.getEvent());
114+
Surface *surfaces[] = {surface.get()};
115+
auto blocking = true;
116+
TimestampPacketDependencies timestampPacketDependencies;
117+
EnqueueProperties enqueueProperties(false, false, false, true, nullptr);
118+
119+
EXPECT_EQ(ev->submitTimeStamp.CPUTimeinNS, 0u);
120+
EXPECT_EQ(ev->submitTimeStamp.GPUTimeStamp, 0u);
121+
122+
mockCmdQ->enqueueCommandWithoutKernel(surfaces, 1, mockCmdQ->getCS(0), 0, blocking, enqueueProperties, timestampPacketDependencies,
123+
eventsRequest, eventBuilder, 0);
124+
125+
EXPECT_EQ(ev->submitTimeStamp.CPUTimeinNS, 0u);
126+
EXPECT_EQ(ev->submitTimeStamp.GPUTimeStamp, 0u);
127+
128+
delete ev;
129+
}
130+
56131
HWTEST_F(EnqueueHandlerTest, givenNonBlitPropertyWhenEnqueueIsBlockedThenDontRegisterBlitProperties) {
57132
std::unique_ptr<MockCommandQueueHw<FamilyType>> mockCmdQ(new MockCommandQueueHw<FamilyType>(context, pClDevice, 0));
58133
auto &csr = mockCmdQ->getGpgpuCommandStreamReceiver();

opencl/test/unit_test/command_stream/aub_command_stream_receiver_1_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ HWTEST_F(AubCommandStreamReceiverTests, WhenBlitBufferIsCalledThenCounterIsCorre
11671167
BlitProperties blitProperties = BlitProperties::constructPropertiesForCopyBuffer(&allocation, &allocation, 0, 0, 0, 0, 0, 0, 0);
11681168
BlitPropertiesContainer blitPropertiesContainer;
11691169
blitPropertiesContainer.push_back(blitProperties);
1170-
aubCsr->blitBuffer(blitPropertiesContainer, true);
1170+
aubCsr->blitBuffer(blitPropertiesContainer, true, false);
11711171
EXPECT_EQ(1u, aubCsr->blitBufferCalled);
11721172
}
11731173

opencl/test/unit_test/command_stream/command_stream_receiver_hw_tests.cpp

Lines changed: 53 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ struct BcsTests : public CommandStreamReceiverHwTest {
331331
BlitPropertiesContainer container;
332332
container.push_back(blitProperties);
333333

334-
return bcsCsr->blitBuffer(container, blocking);
334+
return bcsCsr->blitBuffer(container, blocking, false);
335335
}
336336

337337
TimestampPacketContainer timestampPacketContainer;
@@ -350,8 +350,8 @@ HWTEST_F(BcsTests, givenBltSizeWhenEstimatingCommandSizeThenAddAllRequiredComman
350350
auto expectedAlignedSize = cmdsSizePerBlit * alignedNumberOfBlts;
351351
auto expectedNotAlignedSize = cmdsSizePerBlit * notAlignedNumberOfBlts;
352352

353-
auto alignedEstimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize({alignedBltSize, 1, 1}, csrDependencies, false);
354-
auto notAlignedEstimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize({notAlignedBltSize, 1, 1}, csrDependencies, false);
353+
auto alignedEstimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize({alignedBltSize, 1, 1}, csrDependencies, false, false);
354+
auto notAlignedEstimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize({notAlignedBltSize, 1, 1}, csrDependencies, false, false);
355355

356356
EXPECT_EQ(expectedAlignedSize, alignedEstimatedSize);
357357
EXPECT_EQ(expectedNotAlignedSize, notAlignedEstimatedSize);
@@ -368,8 +368,8 @@ HWTEST_F(BcsTests, givenBltSizeWhenEstimatingCommandSizeForReadBufferRectThenAdd
368368
auto expectedAlignedSize = cmdsSizePerBlit * alignedNumberOfBlts;
369369
auto expectedNotAlignedSize = cmdsSizePerBlit * notAlignedNumberOfBlts;
370370

371-
auto alignedEstimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize(alignedBltSize, csrDependencies, false);
372-
auto notAlignedEstimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize(notAlignedBltSize, csrDependencies, false);
371+
auto alignedEstimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize(alignedBltSize, csrDependencies, false, false);
372+
auto notAlignedEstimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize(notAlignedBltSize, csrDependencies, false, false);
373373

374374
EXPECT_EQ(expectedAlignedSize, alignedEstimatedSize);
375375
EXPECT_EQ(expectedNotAlignedSize, notAlignedEstimatedSize);
@@ -409,7 +409,7 @@ HWTEST_F(BcsTests, givenBlitPropertiesContainerWhenExstimatingCommandsSizeThenCa
409409

410410
expectedAlignedSize = alignUp(expectedAlignedSize, MemoryConstants::cacheLineSize);
411411

412-
auto alignedEstimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize(blitPropertiesContainer, pDevice->getHardwareInfo());
412+
auto alignedEstimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize(blitPropertiesContainer, pDevice->getHardwareInfo(), false);
413413

414414
EXPECT_EQ(expectedAlignedSize, alignedEstimatedSize);
415415
}
@@ -437,7 +437,7 @@ HWTEST_F(BcsTests, givenBlitPropertiesContainerWhenExstimatingCommandsSizeForWri
437437

438438
expectedAlignedSize = alignUp(expectedAlignedSize, MemoryConstants::cacheLineSize);
439439

440-
auto alignedEstimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize(blitPropertiesContainer, pDevice->getHardwareInfo());
440+
auto alignedEstimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize(blitPropertiesContainer, pDevice->getHardwareInfo(), false);
441441

442442
EXPECT_EQ(expectedAlignedSize, alignedEstimatedSize);
443443
}
@@ -448,8 +448,8 @@ HWTEST_F(BcsTests, givenTimestampPacketWriteRequestWhenEstimatingSizeForCommands
448448
auto expectedSizeWithTimestampPacketWrite = expectedBaseSize + EncodeMiFlushDW<FamilyType>::getMiFlushDwCmdSizeForDataWrite();
449449
auto expectedSizeWithoutTimestampPacketWrite = expectedBaseSize;
450450

451-
auto estimatedSizeWithTimestampPacketWrite = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize({1, 1, 1}, csrDependencies, true);
452-
auto estimatedSizeWithoutTimestampPacketWrite = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize({1, 1, 1}, csrDependencies, false);
451+
auto estimatedSizeWithTimestampPacketWrite = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize({1, 1, 1}, csrDependencies, true, false);
452+
auto estimatedSizeWithoutTimestampPacketWrite = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize({1, 1, 1}, csrDependencies, false, false);
453453

454454
EXPECT_EQ(expectedSizeWithTimestampPacketWrite, estimatedSizeWithTimestampPacketWrite);
455455
EXPECT_EQ(expectedSizeWithoutTimestampPacketWrite, estimatedSizeWithoutTimestampPacketWrite);
@@ -469,7 +469,7 @@ HWTEST_F(BcsTests, givenBltSizeAndCsrDependenciesWhenEstimatingCommandSizeThenAd
469469
size_t expectedSize = (cmdsSizePerBlit * numberOfBlts) +
470470
TimestampPacketHelper::getRequiredCmdStreamSize<FamilyType>(csrDependencies);
471471

472-
auto estimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize({1, 1, 1}, csrDependencies, false);
472+
auto estimatedSize = BlitCommandsHelper<FamilyType>::estimateBlitCommandsSize({1, 1, 1}, csrDependencies, false, false);
473473

474474
EXPECT_EQ(expectedSize, estimatedSize);
475475
}
@@ -972,7 +972,7 @@ HWTEST_F(BcsTests, givenMultipleBlitPropertiesWhenDispatchingThenProgramCommands
972972
blitPropertiesContainer.push_back(blitProperties1);
973973
blitPropertiesContainer.push_back(blitProperties2);
974974

975-
csr.blitBuffer(blitPropertiesContainer, true);
975+
csr.blitBuffer(blitPropertiesContainer, true, false);
976976

977977
HardwareParse hwParser;
978978
hwParser.parseCommands<FamilyType>(csr.commandStream);
@@ -1001,6 +1001,46 @@ HWTEST_F(BcsTests, givenMultipleBlitPropertiesWhenDispatchingThenProgramCommands
10011001
EXPECT_EQ(2u, dependenciesFound);
10021002
}
10031003

1004+
HWTEST_F(BcsTests, givenProfilingEnabledWhenBlitBufferThenCommandBufferIsConstructedProperly) {
1005+
auto bcsOsContext = std::unique_ptr<OsContext>(OsContext::create(nullptr, 0, 0, aub_stream::ENGINE_BCS, PreemptionMode::Disabled,
1006+
false, false, false));
1007+
auto bcsCsr = std::make_unique<UltCommandStreamReceiver<FamilyType>>(*pDevice->getExecutionEnvironment(), pDevice->getRootDeviceIndex());
1008+
bcsCsr->setupContext(*bcsOsContext);
1009+
bcsCsr->initializeTagAllocation();
1010+
1011+
cl_int retVal = CL_SUCCESS;
1012+
auto buffer = clUniquePtr<Buffer>(Buffer::create(context.get(), CL_MEM_READ_WRITE, 1, nullptr, retVal));
1013+
void *hostPtr = reinterpret_cast<void *>(0x12340000);
1014+
1015+
auto blitProperties = BlitProperties::constructPropertiesForReadWriteBuffer(BlitterConstants::BlitDirection::HostPtrToBuffer,
1016+
*bcsCsr, buffer->getGraphicsAllocation(), nullptr, hostPtr,
1017+
buffer->getGraphicsAllocation()->getGpuAddress(), 0,
1018+
0, 0, {1, 1, 1}, 0, 0, 0, 0);
1019+
1020+
MockTimestampPacketContainer timestamp(*bcsCsr->getTimestampPacketAllocator(), 1u);
1021+
blitProperties.outputTimestampPacket = timestamp.getNode(0);
1022+
1023+
BlitPropertiesContainer blitPropertiesContainer;
1024+
blitPropertiesContainer.push_back(blitProperties);
1025+
1026+
bcsCsr->blitBuffer(blitPropertiesContainer, false, true);
1027+
1028+
HardwareParse hwParser;
1029+
hwParser.parseCommands<FamilyType>(bcsCsr->commandStream);
1030+
auto &cmdList = hwParser.cmdList;
1031+
1032+
auto cmdIterator = find<typename FamilyType::MI_STORE_REGISTER_MEM *>(cmdList.begin(), cmdList.end());
1033+
ASSERT_NE(cmdList.end(), cmdIterator);
1034+
cmdIterator = find<typename FamilyType::MI_STORE_REGISTER_MEM *>(++cmdIterator, cmdList.end());
1035+
ASSERT_NE(cmdList.end(), cmdIterator);
1036+
cmdIterator = find<typename FamilyType::XY_COPY_BLT *>(++cmdIterator, cmdList.end());
1037+
ASSERT_NE(cmdList.end(), cmdIterator);
1038+
cmdIterator = find<typename FamilyType::MI_STORE_REGISTER_MEM *>(++cmdIterator, cmdList.end());
1039+
ASSERT_NE(cmdList.end(), cmdIterator);
1040+
cmdIterator = find<typename FamilyType::MI_STORE_REGISTER_MEM *>(++cmdIterator, cmdList.end());
1041+
ASSERT_NE(cmdList.end(), cmdIterator);
1042+
}
1043+
10041044
HWTEST_F(BcsTests, givenInputAllocationsWhenBlitDispatchedThenMakeAllAllocationsResident) {
10051045
auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>();
10061046
csr.storeMakeResidentAllocations = true;
@@ -1027,7 +1067,7 @@ HWTEST_F(BcsTests, givenInputAllocationsWhenBlitDispatchedThenMakeAllAllocations
10271067
blitPropertiesContainer.push_back(blitProperties1);
10281068
blitPropertiesContainer.push_back(blitProperties2);
10291069

1030-
csr.blitBuffer(blitPropertiesContainer, false);
1070+
csr.blitBuffer(blitPropertiesContainer, false, false);
10311071

10321072
EXPECT_TRUE(csr.isMadeResident(buffer1->getGraphicsAllocation()));
10331073
EXPECT_TRUE(csr.isMadeResident(buffer2->getGraphicsAllocation()));
@@ -1070,7 +1110,7 @@ HWTEST_F(BcsTests, givenFenceAllocationIsRequiredWhenBlitDispatchedThenMakeAllAl
10701110
blitPropertiesContainer.push_back(blitProperties1);
10711111
blitPropertiesContainer.push_back(blitProperties2);
10721112

1073-
bcsCsr->blitBuffer(blitPropertiesContainer, false);
1113+
bcsCsr->blitBuffer(blitPropertiesContainer, false, false);
10741114

10751115
EXPECT_TRUE(bcsCsr->isMadeResident(buffer1->getGraphicsAllocation()));
10761116
EXPECT_TRUE(bcsCsr->isMadeResident(buffer2->getGraphicsAllocation()));

opencl/test/unit_test/kernel/kernel_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ class CommandStreamReceiverMock : public CommandStreamReceiver {
509509

510510
void waitForTaskCountWithKmdNotifyFallback(uint32_t taskCountToWait, FlushStamp flushStampToWait, bool quickKmdSleep, bool forcePowerSavingMode) override {
511511
}
512-
uint32_t blitBuffer(const BlitPropertiesContainer &blitPropertiesContainer, bool blocking) override { return taskCount; };
512+
uint32_t blitBuffer(const BlitPropertiesContainer &blitPropertiesContainer, bool blocking, bool profilingEnabled) override { return taskCount; };
513513

514514
CompletionStamp flushTask(
515515
LinearStream &commandStream,

opencl/test/unit_test/libult/ult_aub_command_stream_receiver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ class UltAubCommandStreamReceiver : public AUBCommandStreamReceiverHw<GfxFamily>
3939
return csr;
4040
}
4141

42-
uint32_t blitBuffer(const BlitPropertiesContainer &blitPropertiesContainer, bool blocking) override {
42+
uint32_t blitBuffer(const BlitPropertiesContainer &blitPropertiesContainer, bool blocking, bool profilingEnabled) override {
4343
blitBufferCalled++;
44-
return BaseClass::blitBuffer(blitPropertiesContainer, blocking);
44+
return BaseClass::blitBuffer(blitPropertiesContainer, blocking, profilingEnabled);
4545
}
4646

4747
uint32_t blitBufferCalled = 0;

opencl/test/unit_test/libult/ult_command_stream_receiver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ class UltCommandStreamReceiver : public CommandStreamReceiverHw<GfxFamily>, publ
191191
return CommandStreamReceiverHw<GfxFamily>::obtainUniqueOwnership();
192192
}
193193

194-
uint32_t blitBuffer(const BlitPropertiesContainer &blitPropertiesContainer, bool blocking) override {
194+
uint32_t blitBuffer(const BlitPropertiesContainer &blitPropertiesContainer, bool blocking, bool profilingEnabled) override {
195195
blitBufferCalled++;
196-
return CommandStreamReceiverHw<GfxFamily>::blitBuffer(blitPropertiesContainer, blocking);
196+
return CommandStreamReceiverHw<GfxFamily>::blitBuffer(blitPropertiesContainer, blocking, profilingEnabled);
197197
}
198198

199199
bool createPerDssBackedBuffer(Device &device) override {

0 commit comments

Comments
 (0)