mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
fix: earlier stopping of usm reuse cleaner thread
Usm cleaner needs to stop before usm reuse cleanup. Related-To: HSD-18043613805 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f827cda964
commit
f126203df3
@@ -49,9 +49,6 @@ ExecutionEnvironment::~ExecutionEnvironment() {
|
||||
if (directSubmissionController) {
|
||||
directSubmissionController->stopThread();
|
||||
}
|
||||
if (unifiedMemoryReuseCleaner) {
|
||||
unifiedMemoryReuseCleaner->stopThread();
|
||||
}
|
||||
if (memoryManager) {
|
||||
memoryManager->commonCleanup();
|
||||
for (const auto &rootDeviceEnvironment : this->rootDeviceEnvironments) {
|
||||
@@ -177,6 +174,9 @@ void ExecutionEnvironment::prepareRootDeviceEnvironments(uint32_t numRootDevices
|
||||
}
|
||||
|
||||
void ExecutionEnvironment::prepareForCleanup() const {
|
||||
if (unifiedMemoryReuseCleaner) {
|
||||
unifiedMemoryReuseCleaner->stopThread();
|
||||
}
|
||||
for (auto &rootDeviceEnvironment : rootDeviceEnvironments) {
|
||||
if (rootDeviceEnvironment) {
|
||||
rootDeviceEnvironment->prepareForCleanup();
|
||||
|
||||
Reference in New Issue
Block a user