mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
Correct alignment of events
Change-Id: I967bb5e201df5b881c4d1914d74258e6ceda373f Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
@@ -42,7 +42,8 @@ TEST_F(EventPoolCreate, givenTimestampEventsThenEventSizeSufficientForAllKernelT
|
||||
std::unique_ptr<L0::EventPool> eventPool(EventPool::create(driverHandle.get(), 0, nullptr, &eventPoolDesc));
|
||||
ASSERT_NE(nullptr, eventPool);
|
||||
|
||||
uint32_t kernelTimestampsSize = sizeof(struct KernelTimestampEvent);
|
||||
uint32_t kernelTimestampsSize = static_cast<uint32_t>(alignUp(sizeof(struct KernelTimestampEvent),
|
||||
MemoryConstants::cacheLineSize));
|
||||
EXPECT_EQ(kernelTimestampsSize, eventPool->getEventSize());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user