refactor: Switch host events and in order nodes to tagAllocation type

Motivation is to distinguish between host USM resources and internal
driver resources allocated in host memory.

Related-To: NEO-13847

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2025-01-24 15:00:11 +00:00
committed by Compute-Runtime-Automation
parent 71fb9c176b
commit 8bbba3fe5c
5 changed files with 9 additions and 9 deletions

View File

@@ -101,7 +101,7 @@ ze_result_t EventPool::initialize(DriverHandle *driver, Context *context, uint32
initializeSizeParameters(numDevices, deviceHandles, *driverHandleImp, rootDeviceEnvironment);
NEO::AllocationType allocationType = isEventPoolTimestampFlagSet() ? NEO::AllocationType::timestampPacketTagBuffer
: NEO::AllocationType::bufferHostMemory;
: NEO::AllocationType::tagBuffer;
if (this->devices.size() > 1) {
this->isDeviceEventPoolAllocation = false;
}
@@ -448,7 +448,7 @@ ze_result_t EventPool::openEventPoolIpcHandle(const ze_ipc_event_pool_handle_t &
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
}
NEO::AllocationType allocationType = NEO::AllocationType::bufferHostMemory;
NEO::AllocationType allocationType = NEO::AllocationType::tagBuffer;
if (eventPool->isDeviceEventPoolAllocation) {
allocationType = NEO::AllocationType::gpuTimestampDeviceBuffer;
}