mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: defer initialization of cross root device tag allocations
additional tag allocations are not needed before creating OCL contexts with multiple root devices Related-To: NEO-7634 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
dff2c2d8e3
commit
c4759884d8
@@ -245,6 +245,9 @@ bool Context::createImpl(const cl_context_properties *properties,
|
||||
if (pDevice->getRootDeviceIndex() == rootDeviceIndex) {
|
||||
deviceBitfield |= pDevice->getDeviceBitfield();
|
||||
}
|
||||
for (auto &engine : pDevice->getDevice().getAllEngines()) {
|
||||
engine.commandStreamReceiver->ensureTagAllocationForRootDeviceIndex(rootDeviceIndex);
|
||||
}
|
||||
}
|
||||
deviceBitfields.insert({rootDeviceIndex, deviceBitfield});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user