Refactor memory manager so as to support device reset

Move out neoDevice dependent pieces of memory manager code into
separate methods. Those methods could be used for recreating a neoDevice
after a device reset is performed.

Related-To: LOCI-2615

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
Jitendra Sharma
2021-10-07 07:26:03 +00:00
committed by Compute-Runtime-Automation
parent e063b120de
commit f8c89fe984
10 changed files with 150 additions and 22 deletions

View File

@@ -47,12 +47,14 @@ Device::~Device() {
for (auto &engine : engines) {
engine.commandStreamReceiver->flushBatchedSubmissions();
}
engines.clear();
for (auto subdevice : subdevices) {
if (subdevice) {
delete subdevice;
}
}
subdevices.clear();
syncBufferHandler.reset();
commandStreamReceivers.clear();