mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Correct default engine index in MemoryManager
Related-To: NEO-5610 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5318ff1872
commit
927c097b0e
@@ -83,7 +83,15 @@ bool Device::createDeviceImpl() {
|
||||
}
|
||||
}
|
||||
|
||||
executionEnvironment->memoryManager->setDefaultEngineIndex(defaultEngineIndex);
|
||||
uint32_t defaultEngineIndexWithinMemoryManager = 0;
|
||||
for (auto engineIndex = 0u; engineIndex < executionEnvironment->memoryManager->getRegisteredEnginesCount(); engineIndex++) {
|
||||
OsContext *engine = executionEnvironment->memoryManager->getRegisteredEngines()[engineIndex].osContext;
|
||||
if (engine == getDefaultEngine().osContext) {
|
||||
defaultEngineIndexWithinMemoryManager = engineIndex;
|
||||
break;
|
||||
}
|
||||
}
|
||||
executionEnvironment->memoryManager->setDefaultEngineIndex(defaultEngineIndexWithinMemoryManager);
|
||||
|
||||
auto osInterface = getRootDeviceEnvironment().osInterface.get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user