mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
Move memory pool to the core dir
Related-To: NEO-3677 Change-Id: I04fce78640cb0bfc26ad8950261324d997cd113a Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
ee1939ca18
commit
cbc04629fd
@ -29,7 +29,6 @@ set(RUNTIME_SRCS_MEMORY_MANAGER
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/memory_manager.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/memory_manager.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/memory_manager_banks_count.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/memory_pool.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/os_agnostic_memory_manager.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/os_agnostic_memory_manager.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/os_agnostic_memory_manager_allocate_in_device_pool.cpp
|
||||
|
@ -11,8 +11,8 @@
|
||||
#include "core/helpers/ptr_math.h"
|
||||
#include "core/memory_manager/host_ptr_defines.h"
|
||||
#include "core/memory_manager/memory_constants.h"
|
||||
#include "core/memory_manager/memory_pool.h"
|
||||
#include "core/utilities/idlist.h"
|
||||
#include "runtime/memory_manager/memory_pool.h"
|
||||
|
||||
#include "engine_limits.h"
|
||||
#include "storage_info.h"
|
||||
|
@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "runtime/helpers/extendable_enum.h"
|
||||
|
||||
namespace MemoryPool {
|
||||
struct Type : ExtendableEnum {
|
||||
constexpr Type(uint32_t val) : ExtendableEnum(val) {}
|
||||
};
|
||||
constexpr Type MemoryNull{0};
|
||||
constexpr Type System4KBPages{1};
|
||||
constexpr Type System64KBPages{2};
|
||||
constexpr Type System4KBPagesWith32BitGpuAddressing{3};
|
||||
constexpr Type System64KBPagesWith32BitGpuAddressing{4};
|
||||
constexpr Type SystemCpuInaccessible{5};
|
||||
constexpr Type LocalMemory{6};
|
||||
|
||||
inline bool isSystemMemoryPool(Type pool) {
|
||||
return pool == System4KBPages ||
|
||||
pool == System64KBPages ||
|
||||
pool == System4KBPagesWith32BitGpuAddressing ||
|
||||
pool == System64KBPagesWith32BitGpuAddressing;
|
||||
}
|
||||
} // namespace MemoryPool
|
Reference in New Issue
Block a user