mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:20:26 +08:00
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:
committed by
Compute-Runtime-Automation
parent
e063b120de
commit
f8c89fe984
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user