Fix two issues in ipc event pool creation

- remove double and triple free in open ipc event pool cleanup section
- correctly initialize device vector

Related-To: NEO-7636

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2023-01-18 18:13:04 +00:00
committed by Compute-Runtime-Automation
parent b4375dde25
commit 2aacc04ffd
5 changed files with 98 additions and 17 deletions

View File

@@ -69,6 +69,7 @@ ze_result_t DriverHandleImp::createContext(const ze_context_desc_t *desc,
context->rootDeviceIndices.push_back(neoDevice->getRootDeviceIndex());
context->deviceBitfields.insert({neoDevice->getRootDeviceIndex(),
neoDevice->getDeviceBitfield()});
context->addDeviceHandle(device->toHandle());
}
} else {
for (uint32_t i = 0; i < numDevices; i++) {