fix: release secondaryContexts prior to primary context

Related-To: NEO-10920

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2024-04-05 15:51:02 +00:00
committed by Compute-Runtime-Automation
parent 7901c2ea5c
commit d6675b14b3
5 changed files with 46 additions and 0 deletions

View File

@@ -69,6 +69,8 @@ Device::~Device() {
subdevices.clear();
syncBufferHandler.reset();
executionEnvironment->memoryManager->releaseSecondaryOsContexts(this->getRootDeviceIndex());
commandStreamReceivers.clear();
executionEnvironment->memoryManager->waitForDeletions();