mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
e23e354454
commit
5eef40fedd
@@ -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 {
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
22
shared/source/memory_manager/memory_allocation.cpp
Normal file
22
shared/source/memory_manager/memory_allocation.cpp
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user