Cleanup includes 22

Cleaned up files:
opencl/source/built_ins/builtins_dispatch_builder.h
opencl/source/context/context.h
opencl/source/gtpin/gtpin_notify.h
opencl/source/kernel/kernel.h
opencl/source/kernel/multi_device_kernel.h
opencl/source/mem_obj/buffer.h
opencl/source/mem_obj/mem_obj.h
shared/source/built_ins/registry/built_ins_registry.h
shared/source/page_fault_manager/cpu_page_fault_manager.h

Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
This commit is contained in:
Warchulski, Jaroslaw
2023-01-05 11:41:06 +00:00
committed by Compute-Runtime-Automation
parent e23e354454
commit 5eef40fedd
30 changed files with 88 additions and 57 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -10,7 +10,6 @@
#include "shared/source/built_ins/built_ins.h"
#include <string>
#include <unordered_map>
namespace NEO {

View File

@@ -36,6 +36,7 @@ set(NEO_CORE_MEMORY_MANAGER
${CMAKE_CURRENT_SOURCE_DIR}/internal_allocation_storage.h
${CMAKE_CURRENT_SOURCE_DIR}/local_memory_usage.cpp
${CMAKE_CURRENT_SOURCE_DIR}/local_memory_usage.h
${CMAKE_CURRENT_SOURCE_DIR}/memory_allocation.cpp
${CMAKE_CURRENT_SOURCE_DIR}/memory_allocation.h
${CMAKE_CURRENT_SOURCE_DIR}/memory_banks.h
${CMAKE_CURRENT_SOURCE_DIR}/memory_manager.cpp

View File

@@ -0,0 +1,22 @@
/*
* 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

View File

@@ -576,12 +576,4 @@ double OsAgnosticMemoryManager::getPercentOfGlobalMemoryAvailable(uint32_t rootD
return 0.8;
}
void MemoryAllocation::overrideMemoryPool(MemoryPool pool) {
if (DebugManager.flags.AUBDumpForceAllToLocalMemory.get()) {
this->memoryPool = MemoryPool::LocalMemory;
return;
}
this->memoryPool = pool;
}
} // namespace NEO

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2022 Intel Corporation
* Copyright (C) 2019-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -10,12 +10,11 @@
#include "shared/source/helpers/non_copyable_or_moveable.h"
#include "shared/source/utilities/spinlock.h"
#include "memory_properties_flags.h"
#include <memory>
#include <unordered_map>
namespace NEO {
struct MemoryProperties;
class GraphicsAllocation;
class Device;
class SVMAllocsManager;