2023-01-05 19:41:06 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2023 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "shared/source/memory_manager/memory_allocation.h"
|
|
|
|
|
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
void MemoryAllocation::overrideMemoryPool(MemoryPool pool) {
|
2023-11-30 16:32:25 +08:00
|
|
|
if (debugManager.flags.AUBDumpForceAllToLocalMemory.get()) {
|
2023-12-12 17:11:27 +08:00
|
|
|
this->memoryPool = MemoryPool::localMemory;
|
2023-01-05 19:41:06 +08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
this->memoryPool = pool;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace NEO
|