Pass timestamp resolution to scheduler through event pool.

Related-To: NEO-2491

Change-Id: I7fb42441320b2b8a63b65ebe1d7f1f435809c80e
Signed-off-by: Piotr Zdunowski <piotr.zdunowski@intel.com>
This commit is contained in:
Piotr Zdunowski
2019-10-03 16:05:30 +02:00
committed by sys_ocldev
parent bb7c4d9222
commit 5e4362258a
5 changed files with 27 additions and 2 deletions

View File

@@ -141,6 +141,7 @@ void DeviceQueue::initDeviceQueue() {
auto igilEventPool = reinterpret_cast<IGIL_EventPool *>(eventPoolBuffer->getUnderlyingBuffer());
memset(eventPoolBuffer->getUnderlyingBuffer(), 0x0, eventPoolBuffer->getUnderlyingBufferSize());
igilEventPool->m_TimestampResolution = static_cast<float>(device->getProfilingTimerResolution());
igilEventPool->m_size = caps.maxOnDeviceEvents;
}