fix: stop direct submission blocking on platform destruction

Resolves: GSD-6341

Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
This commit is contained in:
Venevtsev, Igor
2023-10-06 11:47:33 +00:00
committed by Compute-Runtime-Automation
parent 85eafc9e61
commit 50b2262339
8 changed files with 34 additions and 10 deletions

View File

@@ -45,7 +45,7 @@ Platform::~Platform() {
for (auto clDevice : this->clDevices) {
clDevice->getDevice().getRootDeviceEnvironmentRef().debugger.reset(nullptr);
clDevice->getDevice().stopDirectSubmission();
clDevice->getDevice().stopDirectSubmissionAndWaitForCompletion();
clDevice->decRefInternal();
}