refactor: remove not needed code

Related-To: NEO-7067

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2025-05-23 13:24:23 +00:00
committed by Compute-Runtime-Automation
parent 98bf872fdd
commit 6cb07b9d1c
4 changed files with 2 additions and 12 deletions

View File

@@ -227,9 +227,7 @@ void EventPool::initializeSizeParameters(uint32_t numDevices, ze_device_handle_t
maxKernelCount = driver.getEventMaxKernelCount(numDevices, deviceHandles);
}
const uint32_t minimalPacketCount = isEventPoolTimestampFlagSet() ? 2 : 1;
auto eventSize = std::max(eventPackets, minimalPacketCount) * gfxCoreHelper.getSingleTimestampPacketSize();
auto eventSize = eventPackets * gfxCoreHelper.getSingleTimestampPacketSize();
if (eventPoolFlags & ZE_EVENT_POOL_FLAG_KERNEL_MAPPED_TIMESTAMP) {
eventSize += sizeof(NEO::TimeStampData);
}

View File

@@ -80,7 +80,7 @@ std::unique_ptr<NEO::TagAllocatorBase> L0GfxCoreHelperHw<Family>::getInOrderTime
using TimestampPacketType = typename Family::TimestampPacketType;
using TimestampPacketsT = NEO::TimestampPackets<TimestampPacketType, 1>;
size_t size = sizeof(TimestampPacketsT) * std::max(packetsCountPerElement, size_t(2));
size_t size = sizeof(TimestampPacketsT) * packetsCountPerElement;
return std::make_unique<NEO::TagAllocator<TimestampPacketsT>>(rootDeviceIndices, memoryManager, initialTagCount, tagAlignment, size, Event::State::STATE_CLEARED, false, true, deviceBitfield);
}