Files
compute-runtime/shared/source/memory_manager/memory_allocation.cpp
Mateusz Jablonski 01dd503e47 refactor: correct naming of MemoryPool enum values
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-12-13 07:51:39 +01:00

22 lines
480 B
C++

/*
* 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) {
if (debugManager.flags.AUBDumpForceAllToLocalMemory.get()) {
this->memoryPool = MemoryPool::localMemory;
return;
}
this->memoryPool = pool;
}
} // namespace NEO