Skip to content

Commit e66920a

Browse files
Fix typos.
Change-Id: Ie7add32684f812e11281668d9b93910384086c62
1 parent 728932e commit e66920a

File tree

9 files changed

+22
-22
lines changed

9 files changed

+22
-22
lines changed

runtime/command_queue/gpgpu_walker.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ inline void GpgpuWalkerHelper<GfxFamily>::dispatchOnDeviceWaitlistSemaphores(Lin
384384
}
385385

386386
for (auto &node : event->getTimestampPacketNodes()->peekNodes()) {
387-
TimestmapPacketHelper::programSemaphoreWithImplicitDependency<GfxFamily>(*commandStream, *node->tag);
387+
TimestampPacketHelper::programSemaphoreWithImplicitDependency<GfxFamily>(*commandStream, *node->tag);
388388
}
389389
}
390390
}

runtime/command_queue/hardware_interface.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void HardwareInterface<GfxFamily>::dispatchWalker(
8686
numEventsInWaitList, eventWaitList);
8787
if (previousTimestampPacketNodes) {
8888
for (auto &node : previousTimestampPacketNodes->peekNodes()) {
89-
TimestmapPacketHelper::programSemaphoreWithImplicitDependency<GfxFamily>(*commandStream, *node->tag);
89+
TimestampPacketHelper::programSemaphoreWithImplicitDependency<GfxFamily>(*commandStream, *node->tag);
9090
}
9191
}
9292
}

runtime/command_stream/command_stream_receiver_hw.inl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -814,12 +814,12 @@ void CommandStreamReceiverHw<GfxFamily>::handleEventsTimestampPacketTags(LinearS
814814
continue;
815815
}
816816

817-
auto timestmapPacketContainer = event->getTimestampPacketNodes();
818-
timestmapPacketContainer->makeResident(*this);
817+
auto timestampPacketContainer = event->getTimestampPacketNodes();
818+
timestampPacketContainer->makeResident(*this);
819819

820820
if (&event->getCommandQueue()->getDevice() != &currentDevice) {
821-
for (auto &node : timestmapPacketContainer->peekNodes()) {
822-
TimestmapPacketHelper::programSemaphoreWithImplicitDependency<GfxFamily>(csr, *node->tag);
821+
for (auto &node : timestampPacketContainer->peekNodes()) {
822+
TimestampPacketHelper::programSemaphoreWithImplicitDependency<GfxFamily>(csr, *node->tag);
823823
}
824824
}
825825
}

runtime/helpers/timestamp_packet.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ class TimestampPacket {
6666
static_assert(((static_cast<uint32_t>(TimestampPacket::DataIndex::Max) + 1) * sizeof(uint32_t)) == sizeof(TimestampPacket),
6767
"This structure is consumed by GPU and has to follow specific restrictions for padding and size");
6868

69-
struct TimestmapPacketHelper {
69+
struct TimestampPacketHelper {
7070
template <typename GfxFamily>
71-
static void programSemaphoreWithImplicitDependency(LinearStream &cmdStream, TimestampPacket &timestmapPacket) {
71+
static void programSemaphoreWithImplicitDependency(LinearStream &cmdStream, TimestampPacket &timestampPacket) {
7272
using MI_ATOMIC = typename GfxFamily::MI_ATOMIC;
73-
auto compareAddress = timestmapPacket.pickAddressForDataWrite(TimestampPacket::DataIndex::ContextEnd);
74-
auto dependenciesCountAddress = timestmapPacket.pickImplicitDependenciesCountWriteAddress();
73+
auto compareAddress = timestampPacket.pickAddressForDataWrite(TimestampPacket::DataIndex::ContextEnd);
74+
auto dependenciesCountAddress = timestampPacket.pickImplicitDependenciesCountWriteAddress();
7575

7676
KernelCommandsHelper<GfxFamily>::programMiSemaphoreWait(cmdStream, compareAddress, 1);
7777

78-
timestmapPacket.incImplicitDependenciesCount();
78+
timestampPacket.incImplicitDependenciesCount();
7979

8080
KernelCommandsHelper<GfxFamily>::programMiAtomic(cmdStream, dependenciesCountAddress,
8181
MI_ATOMIC::ATOMIC_OPCODES::ATOMIC_4B_DECREMENT,

unit_tests/aub_tests/command_queue/enqueue_with_timestamp_packet_aub_tests.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ HWTEST_F(TimestampPacketAubTests, givenMultipleWalkersWhenEnqueueingThenWriteAll
7878

7979
pCmdQ->enqueueWriteBuffer(buffer.get(), CL_TRUE, 1, writeSize, writeData, 0, nullptr, &outEvent);
8080

81-
auto &timestmapNodes = castToObject<Event>(outEvent)->getTimestampPacketNodes()->peekNodes();
81+
auto &timestampNodes = castToObject<Event>(outEvent)->getTimestampPacketNodes()->peekNodes();
8282

83-
EXPECT_EQ(2u, timestmapNodes.size());
83+
EXPECT_EQ(2u, timestampNodes.size());
8484

8585
uint32_t expectedEndTimestamp[2] = {0, 0};
86-
auto endTimestampAddress1 = reinterpret_cast<void *>(timestmapNodes.at(0)->tag->pickAddressForDataWrite(TimestampPacket::DataIndex::ContextEnd));
87-
auto endTimestampAddress2 = reinterpret_cast<void *>(timestmapNodes.at(1)->tag->pickAddressForDataWrite(TimestampPacket::DataIndex::ContextEnd));
86+
auto endTimestampAddress1 = reinterpret_cast<void *>(timestampNodes.at(0)->tag->pickAddressForDataWrite(TimestampPacket::DataIndex::ContextEnd));
87+
auto endTimestampAddress2 = reinterpret_cast<void *>(timestampNodes.at(1)->tag->pickAddressForDataWrite(TimestampPacket::DataIndex::ContextEnd));
8888
expectMemory<FamilyType>(endTimestampAddress1, expectedEndTimestamp, 2 * sizeof(uint32_t));
8989
expectMemory<FamilyType>(endTimestampAddress2, expectedEndTimestamp, 2 * sizeof(uint32_t));
9090

unit_tests/command_stream/command_stream_receiver_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ HWTEST_F(CommandStreamReceiverTest, givenDebugVariableEnabledWhenCreatingCsrThen
274274

275275
HWTEST_F(CommandStreamReceiverTest, whenCsrIsCreatedThenUseTimestampPacketWriteIfPossible) {
276276
CommandStreamReceiverHw<FamilyType> csr(*platformDevices[0], executionEnvironment);
277-
EXPECT_EQ(UnitTestHelper<FamilyType>::isTimestmapPacketWriteSupported(), csr.peekTimestampPacketWriteEnabled());
277+
EXPECT_EQ(UnitTestHelper<FamilyType>::isTimestampPacketWriteSupported(), csr.peekTimestampPacketWriteEnabled());
278278
}
279279

280280
TEST(CommandStreamReceiverSimpleTest, givenCSRWithTagAllocationSetWhenGetTagAllocationIsCalledThenCorrectAllocationIsReturned) {

unit_tests/helpers/timestamp_packet_tests.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ struct TimestampPacketTests : public TimestampPacketSimpleTests {
107107
EXPECT_EQ(static_cast<uint32_t>(writeAddress >> 32), miAtomicCmd->getMemoryAddressHigh());
108108
};
109109

110-
void verifyDependencyCounterValues(TimestampPacketContainer *timestmapPacketContainer, uint32_t expectedValue) {
111-
auto &nodes = timestmapPacketContainer->peekNodes();
110+
void verifyDependencyCounterValues(TimestampPacketContainer *timestampPacketContainer, uint32_t expectedValue) {
111+
auto &nodes = timestampPacketContainer->peekNodes();
112112
EXPECT_NE(0u, nodes.size());
113113
for (auto &node : nodes) {
114114
auto dependenciesCount = reinterpret_cast<std::atomic<uint32_t> *>(reinterpret_cast<void *>(node->tag->pickImplicitDependenciesCountWriteAddress()));
@@ -828,7 +828,7 @@ HWTEST_F(TimestampPacketTests, givenWaitlistAndOutputEventWhenEnqueueingWithoutK
828828
MockCommandQueueHw<FamilyType> cmdQ(context.get(), device.get(), nullptr);
829829

830830
MockKernelWithInternals mockKernel(*device, context.get());
831-
cmdQ.enqueueKernel(mockKernel.mockKernel, 1, nullptr, gws, nullptr, 0, nullptr, nullptr); // obtain first TimestmapPacket
831+
cmdQ.enqueueKernel(mockKernel.mockKernel, 1, nullptr, gws, nullptr, 0, nullptr, nullptr); // obtain first TimestampPacket
832832

833833
TimestampPacketContainer cmdQNodes(device->getMemoryManager());
834834
cmdQNodes.assignAndIncrementNodesRefCounts(*cmdQ.timestampPacketContainer);
@@ -881,7 +881,7 @@ HWTEST_F(TimestampPacketTests, whenEnqueueingBarrierThenRequestPipeControlOnCsrF
881881
MockCommandQueueHw<FamilyType> cmdQ(context.get(), device.get(), nullptr);
882882

883883
MockKernelWithInternals mockKernel(*device, context.get());
884-
cmdQ.enqueueKernel(mockKernel.mockKernel, 1, nullptr, gws, nullptr, 0, nullptr, nullptr); // obtain first TimestmapPacket
884+
cmdQ.enqueueKernel(mockKernel.mockKernel, 1, nullptr, gws, nullptr, 0, nullptr, nullptr); // obtain first TimestampPacket
885885

886886
TimestampPacketContainer cmdQNodes(device->getMemoryManager());
887887
cmdQNodes.assignAndIncrementNodesRefCounts(*cmdQ.timestampPacketContainer);

unit_tests/helpers/unit_test_helper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ struct UnitTestHelper {
2020

2121
static bool isPageTableManagerSupported(const HardwareInfo &hwInfo);
2222

23-
static bool isTimestmapPacketWriteSupported();
23+
static bool isTimestampPacketWriteSupported();
2424
};
2525
} // namespace OCLRT

unit_tests/helpers/unit_test_helper.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ bool UnitTestHelper<GfxFamily>::isPageTableManagerSupported(const HardwareInfo &
2626
}
2727

2828
template <typename GfxFamily>
29-
bool UnitTestHelper<GfxFamily>::isTimestmapPacketWriteSupported() {
29+
bool UnitTestHelper<GfxFamily>::isTimestampPacketWriteSupported() {
3030
return false;
3131
}
3232
} // namespace OCLRT

0 commit comments

Comments
 (0)