mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Move memory management to core.
Change-Id: Ifa9233960f81095e293df631da9422608535171d
This commit is contained in:
committed by
sys_ocldev
parent
2cec1869fd
commit
e58273fac2
@@ -5,7 +5,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/compiler_interface/compiler_interface.h"
|
||||
#include "runtime/context/context.h"
|
||||
#include "runtime/helpers/file_io.h"
|
||||
#include "runtime/helpers/options.h"
|
||||
#include "unit_tests/helpers/kernel_binary_helper.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/helpers/test_files.h"
|
||||
|
||||
#include "cl_api_tests.h"
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/compiler_interface/compiler_interface.h"
|
||||
#include "runtime/context/context.h"
|
||||
#include "runtime/helpers/file_io.h"
|
||||
#include "runtime/helpers/options.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/helpers/test_files.h"
|
||||
|
||||
#include "cl_api_tests.h"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "unit_tests/aub_tests/command_stream/aub_command_stream_fixture.h"
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/command_queue/command_queue.h"
|
||||
#include "runtime/command_stream/command_stream_receiver.h"
|
||||
#include "runtime/command_stream/tbx_command_stream_receiver.h"
|
||||
@@ -14,7 +15,6 @@
|
||||
#include "runtime/helpers/hw_helper.h"
|
||||
#include "runtime/os_interface/os_context.h"
|
||||
#include "unit_tests/gen_common/gen_cmd_parse.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/mocks/mock_device.h"
|
||||
#include "unit_tests/tests_configuration.h"
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/compiler_interface/compiler_interface.h"
|
||||
#include "runtime/compiler_interface/compiler_interface.inl"
|
||||
#include "runtime/context/context.h"
|
||||
@@ -16,7 +17,6 @@
|
||||
#include "unit_tests/fixtures/device_fixture.h"
|
||||
#include "unit_tests/global_environment.h"
|
||||
#include "unit_tests/helpers/debug_manager_state_restore.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/helpers/test_files.h"
|
||||
#include "unit_tests/mocks/mock_cif.h"
|
||||
#include "unit_tests/mocks/mock_compilers.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2017-2018 Intel Corporation
|
||||
# Copyright (C) 2017-2019 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
@@ -11,8 +11,8 @@ set(CLELFLIB_UNIT_TESTS_SRCS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/fixtures/memory_management_fixture.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/fixtures/memory_management_fixture.h
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/helpers/memory_management.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/helpers/memory_management.h
|
||||
${IGDRCL_SOURCE_DIR}/core/unit_tests/helpers/memory_management.cpp
|
||||
${IGDRCL_SOURCE_DIR}/core/unit_tests/helpers/memory_management.h
|
||||
)
|
||||
|
||||
add_executable(elflib_tests ${CLELFLIB_UNIT_TESTS_SRCS})
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
|
||||
#include "unit_tests/fixtures/memory_management_fixture.h"
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/helpers/options.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/memory_leak_listener.h"
|
||||
|
||||
#include <cinttypes>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/fixtures/memory_management_fixture.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@ set(IGDRCL_SRCS_LIB_ULT
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/libult/create_tbx_sockets.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/libult/ult_command_stream_receiver.h
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/helpers/debug_helpers.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/helpers/memory_management.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/helpers/memory_management.h
|
||||
${IGDRCL_SOURCE_DIR}/core/unit_tests/helpers/memory_management.cpp
|
||||
${IGDRCL_SOURCE_DIR}/core/unit_tests/helpers/memory_management.h
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/helpers/test_files.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/helpers/test_files.h
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/libult/create_tbx_sockets.cpp
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/helpers/options.h"
|
||||
#include "runtime/mem_obj/buffer.h"
|
||||
#include "runtime/memory_manager/os_agnostic_memory_manager.h"
|
||||
@@ -12,7 +13,6 @@
|
||||
#include "unit_tests/fixtures/device_fixture.h"
|
||||
#include "unit_tests/fixtures/memory_management_fixture.h"
|
||||
#include "unit_tests/fixtures/platform_fixture.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/mocks/mock_context.h"
|
||||
#include "unit_tests/mocks/mock_execution_environment.h"
|
||||
#include "unit_tests/mocks/mock_memory_manager.h"
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/command_queue/command_queue_hw.h"
|
||||
#include "runtime/command_queue/gpgpu_walker.h"
|
||||
#include "runtime/event/user_event.h"
|
||||
@@ -24,7 +25,6 @@
|
||||
#include "unit_tests/gen_common/matchers.h"
|
||||
#include "unit_tests/helpers/debug_manager_state_restore.h"
|
||||
#include "unit_tests/helpers/hw_parse.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/mocks/mock_buffer.h"
|
||||
#include "unit_tests/mocks/mock_command_queue.h"
|
||||
#include "unit_tests/mocks/mock_context.h"
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "test.h"
|
||||
#include "unit_tests/fixtures/buffer_fixture.h"
|
||||
#include "unit_tests/fixtures/memory_management_fixture.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/built_ins/built_ins.h"
|
||||
#include "runtime/compiler_interface/compiler_interface.h"
|
||||
#include "runtime/helpers/aligned_memory.h"
|
||||
@@ -19,7 +20,6 @@
|
||||
#include "unit_tests/fixtures/memory_management_fixture.h"
|
||||
#include "unit_tests/helpers/debug_manager_state_restore.h"
|
||||
#include "unit_tests/helpers/kernel_binary_helper.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/mem_obj/image_compression_fixture.h"
|
||||
#include "unit_tests/mocks/mock_context.h"
|
||||
#include "unit_tests/mocks/mock_gmm.h"
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/helpers/aligned_memory.h"
|
||||
#include "runtime/mem_obj/buffer.h"
|
||||
#include "unit_tests/fixtures/device_fixture.h"
|
||||
#include "unit_tests/fixtures/memory_management_fixture.h"
|
||||
#include "unit_tests/helpers/debug_manager_state_restore.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/mocks/mock_context.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
|
||||
#include "memory_leak_listener.h"
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/helpers/options.h"
|
||||
#include "unit_tests/fixtures/memory_management_fixture.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
|
||||
using ::testing::TestInfo;
|
||||
using namespace NEO;
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/helpers/aligned_memory.h"
|
||||
#include "runtime/memory_manager/address_mapper.h"
|
||||
#include "test.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/command_stream/preemption.h"
|
||||
#include "runtime/event/event.h"
|
||||
#include "runtime/helpers/cache_policy.h"
|
||||
@@ -25,7 +26,6 @@
|
||||
#include "unit_tests/fixtures/memory_manager_fixture.h"
|
||||
#include "unit_tests/helpers/debug_manager_state_restore.h"
|
||||
#include "unit_tests/helpers/execution_environment_helper.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/helpers/variable_backup.h"
|
||||
#include "unit_tests/mocks/mock_context.h"
|
||||
#include "unit_tests/mocks/mock_csr.h"
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
*/
|
||||
|
||||
#include "core/helpers/ptr_math.h"
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/aub_mem_dump/page_table_entry_bits.h"
|
||||
#include "runtime/memory_manager/memory_banks.h"
|
||||
#include "runtime/memory_manager/page_table.h"
|
||||
#include "runtime/memory_manager/page_table.inl"
|
||||
#include "test.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/mocks/mock_physical_address_allocator.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/utilities/debug_file_reader.h"
|
||||
#include "unit_tests/fixtures/buffer_fixture.h"
|
||||
#include "unit_tests/fixtures/image_fixture.h"
|
||||
#include "unit_tests/helpers/debug_manager_state_restore.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/mocks/mock_buffer.h"
|
||||
#include "unit_tests/mocks/mock_context.h"
|
||||
#include "unit_tests/mocks/mock_kernel.h"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "drm_memory_manager_tests.h"
|
||||
|
||||
#include "core/helpers/ptr_math.h"
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/command_stream/device_command_stream.h"
|
||||
#include "runtime/command_stream/linear_stream.h"
|
||||
#include "runtime/command_stream/preemption.h"
|
||||
@@ -29,7 +30,6 @@
|
||||
#include "runtime/utilities/tag_allocator.h"
|
||||
#include "test.h"
|
||||
#include "unit_tests/helpers/debug_manager_state_restore.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
#include "unit_tests/mocks/linux/mock_drm_command_stream_receiver.h"
|
||||
#include "unit_tests/mocks/mock_context.h"
|
||||
#include "unit_tests/mocks/mock_gmm.h"
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
#elif defined(__linux__)
|
||||
#include "runtime/os_interface/linux/os_library.h"
|
||||
#endif
|
||||
#include "core/unit_tests/helpers/memory_management.h"
|
||||
#include "runtime/os_interface/os_library.h"
|
||||
#include "test.h"
|
||||
#include "unit_tests/fixtures/memory_management_fixture.h"
|
||||
#include "unit_tests/helpers/memory_management.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user