Move mocks: cif, gmm context, compilers
Related-To: NEO-5161 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
parent
00fc92129d
commit
d0cb27226f
|
@ -11,28 +11,28 @@
|
|||
# These need to be added to a project to enable platform support in ULTs
|
||||
if(TESTS_GEN8)
|
||||
set(COMPUTE_RUNTIME_ULT_GEN8
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/libult/gen8.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/gen8.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/gen8/cmd_parse_gen8.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
if(TESTS_GEN9)
|
||||
set(COMPUTE_RUNTIME_ULT_GEN9
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/libult/gen9.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/gen9.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/gen9/cmd_parse_gen9.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
if(TESTS_GEN11)
|
||||
set(COMPUTE_RUNTIME_ULT_GEN11
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/libult/gen11.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/gen11.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/gen11/cmd_parse_gen11.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
if(TESTS_GEN12LP)
|
||||
set(COMPUTE_RUNTIME_ULT_GEN12LP
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/libult/gen12lp.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/gen12lp.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/gen12lp/cmd_parse_gen12lp.cpp
|
||||
)
|
||||
include_directories(${NEO_SHARED_TEST_DIRECTORY}/common/gen12lp/cmd_parse${BRANCH_DIR_SUFFIX}/)
|
||||
|
@ -65,32 +65,32 @@ add_library(compute_runtime_mockable_extra
|
|||
STATIC
|
||||
EXCLUDE_FROM_ALL
|
||||
${CMAKE_CURRENT_LIST_DIR}/l0_tests.cmake
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/utilities/cpuintrinsics.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/aub_stream_mocks/aub_stream_interface_mock.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/helpers/sip_init.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/helpers/test_files.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/create_tbx_sockets.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/os_interface.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/source_level_debugger_library.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/source_level_debugger_ult.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks${BRANCH_SUFIX_DIR}/mock_gmm_client_context.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_cif.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_command_stream_receiver.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_compiler_interface_spirv.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_compiler_interface_spirv.h
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_command_stream_receiver.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_device.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_sip.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/aub_stream_mocks/aub_stream_interface_mock.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/abort.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/helpers/debug_helpers.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/os_interface.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/source_level_debugger_ult.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/source_level_debugger_library.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/mocks/mock_cif.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/mocks/mock_compilers.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/mocks/mock_gmm_page_table_mngr.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/create_tbx_sockets.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_compilers.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_deferred_deleter.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/mocks${BRANCH_SUFIX_DIR}/mock_gmm_client_context.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/mocks/mock_gmm_client_context_base.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_device.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_gmm_client_context_base.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_sip.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/helpers/debug_helpers.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/utilities/cpuintrinsics.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/abort.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/fixtures/mock_execution_environment_gmm_fixture.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/mocks/mock_gmm_page_table_mngr.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/mocks/mock_gmm_resource_info.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/mocks/mock_memory_manager.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/mocks/mock_program.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/utilities/debug_settings_reader_creator.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/fixtures/mock_execution_environment_gmm_fixture.cpp
|
||||
${NEO_SOURCE_DIR}/shared/source/debug_settings/debug_settings_manager.cpp
|
||||
)
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ set(L0_FIXTURES_SOURCES
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/module_fixture.h
|
||||
)
|
||||
|
||||
add_library(${TARGET_NAME} OBJECT ${L0_FIXTURES_SOURCES} ${IGDRCL_SRCS_tests_compiler_mocks})
|
||||
add_library(${TARGET_NAME} OBJECT ${L0_FIXTURES_SOURCES} ${NEO_CORE_tests_compiler_mocks})
|
||||
|
||||
target_include_directories(${TARGET_NAME} PRIVATE
|
||||
$<TARGET_PROPERTY:gmock-gtest,INTERFACE_INCLUDE_DIRECTORIES>
|
||||
|
|
|
@ -10,10 +10,9 @@
|
|||
#include "shared/source/os_interface/device_factory.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/helpers/default_hw_info.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/mock_device.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
|
||||
#include "level_zero/core/source/context/context_imp.h"
|
||||
#include "level_zero/core/test/unit_tests/mocks/mock_driver_handle.h"
|
||||
|
||||
|
|
|
@ -9,14 +9,13 @@
|
|||
|
||||
#include "shared/source/helpers/constants.h"
|
||||
#include "shared/source/os_interface/device_factory.h"
|
||||
#include "shared/source/os_interface/os_inc_base.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/helpers/default_hw_info.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/mock_device.h"
|
||||
#include "shared/test/common/mocks/mock_memory_operations_handler.h"
|
||||
|
||||
#include "opencl/source/os_interface/os_inc_base.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
|
||||
#include "level_zero/core/test/unit_tests/fixtures/device_fixture.h"
|
||||
#include "level_zero/core/test/unit_tests/mocks/mock_built_ins.h"
|
||||
#include "level_zero/core/test/unit_tests/mocks/mock_driver_handle.h"
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
#include "shared/source/memory_manager/allocation_properties.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/helpers/test_files.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/mock_graphics_allocation.h"
|
||||
|
||||
#include "opencl/source/program/kernel_info.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_memory_manager.h"
|
||||
|
||||
#include "level_zero/core/source/module/module.h"
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
#include "shared/source/gen9/reg_configs.h"
|
||||
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
|
||||
#include "opencl/source/helpers/hardware_commands_helper.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "test.h"
|
||||
|
||||
#include "level_zero/core/source/driver/driver_imp.h"
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
#include "shared/source/gen9/reg_configs.h"
|
||||
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
|
||||
#include "opencl/source/helpers/hardware_commands_helper.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "test.h"
|
||||
|
||||
#include "level_zero/core/source/cmdqueue/cmdqueue_imp.h"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "shared/test/common/helpers/memory_leak_listener.h"
|
||||
#include "shared/test/common/helpers/test_files.h"
|
||||
#include "shared/test/common/helpers/ult_hw_config.inl"
|
||||
#include "shared/test/common/mocks/mock_gmm_client_context.h"
|
||||
#include "shared/test/common/mocks/mock_sip.h"
|
||||
#include "shared/test/unit_test/base_ult_config_listener.h"
|
||||
|
||||
|
@ -19,7 +20,6 @@
|
|||
#include "opencl/source/utilities/logger.h"
|
||||
#include "opencl/test/unit_test/custom_event_listener.h"
|
||||
#include "opencl/test/unit_test/global_environment.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_gmm_client_context.h"
|
||||
|
||||
#include "level_zero/core/source/cmdlist/cmdlist.h"
|
||||
|
||||
|
|
|
@ -6,10 +6,9 @@
|
|||
*/
|
||||
|
||||
#pragma once
|
||||
#include "shared/test/common/mocks/mock_cif.h"
|
||||
#include "shared/test/common/mocks/mock_compiler_interface.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_cif.h"
|
||||
|
||||
#include "level_zero/core/source/module/module_imp.h"
|
||||
#include "level_zero/core/test/unit_tests/mock.h"
|
||||
#include "level_zero/core/test/unit_tests/white_box.h"
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
#include "shared/source/gmm_helper/gmm_helper.h"
|
||||
#include "shared/source/helpers/register_offsets.h"
|
||||
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/mock_graphics_allocation.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_memory_manager.h"
|
||||
#include "test.h"
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
#include "shared/source/helpers/register_offsets.h"
|
||||
#include "shared/source/utilities/software_tags_manager.h"
|
||||
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "test.h"
|
||||
|
||||
#include "level_zero/core/source/cmdlist/cmdlist_hw_immediate.h"
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
*/
|
||||
|
||||
#include "shared/test/common/mocks/mock_command_stream_receiver.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/unit_test/page_fault_manager/mock_cpu_page_fault_manager.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_memory_manager.h"
|
||||
#include "test.h"
|
||||
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
|
||||
#pragma once
|
||||
#include "shared/test/common/mocks/mock_compiler_interface.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/mock_device.h"
|
||||
#include "shared/test/common/mocks/mock_os_library.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_source_level_debugger.h"
|
||||
|
||||
#include "level_zero/core/source/cmdqueue/cmdqueue_hw.h"
|
||||
|
|
|
@ -6,11 +6,10 @@
|
|||
*/
|
||||
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/mock_device.h"
|
||||
#include "shared/test/common/mocks/mock_memory_operations_handler.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
|
||||
#include "level_zero/core/test/unit_tests/fixtures/device_fixture.h"
|
||||
#include "level_zero/core/test/unit_tests/mocks/mock_built_ins.h"
|
||||
#include "level_zero/core/test/unit_tests/mocks/mock_l0_debugger.h"
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
#include "shared/source/device_binary_format/patchtokens_decoder.h"
|
||||
#include "shared/source/kernel/kernel_descriptor_from_patchtokens.h"
|
||||
#include "shared/test/common/helpers/unit_test_helper.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/mock_elf.h"
|
||||
|
||||
#include "opencl/source/program/kernel_info.h"
|
||||
#include "opencl/source/program/kernel_info_from_patchtokens.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "test.h"
|
||||
|
||||
#include "level_zero/core/source/module/module_imp.h"
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
#include "shared/source/helpers/preamble.h"
|
||||
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "test.h"
|
||||
|
||||
#include "level_zero/core/source/cmdqueue/cmdqueue_hw.h"
|
||||
|
|
|
@ -8,14 +8,14 @@
|
|||
#include "shared/source/device/root_device.h"
|
||||
#include "shared/source/helpers/bindless_heaps_helper.h"
|
||||
#include "shared/source/os_interface/hw_info_config.h"
|
||||
#include "shared/source/os_interface/os_inc_base.h"
|
||||
#include "shared/source/os_interface/os_time.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/mock_device.h"
|
||||
#include "shared/test/common/mocks/mock_sip.h"
|
||||
#include "shared/test/common/mocks/ult_device_factory.h"
|
||||
|
||||
#include "opencl/source/os_interface/os_inc_base.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_memory_manager.h"
|
||||
#include "test.h"
|
||||
|
||||
|
|
|
@ -9,10 +9,9 @@
|
|||
#include "shared/source/os_interface/device_factory.h"
|
||||
#include "shared/source/os_interface/linux/drm_neo.h"
|
||||
#include "shared/source/os_interface/os_interface.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/ult_device_factory.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
|
||||
#include "level_zero/core/source/driver/driver_imp.h"
|
||||
#include "level_zero/core/test/unit_tests/fixtures/device_fixture.h"
|
||||
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
#include "shared/source/helpers/string.h"
|
||||
#include "shared/source/os_interface/device_factory.h"
|
||||
#include "shared/source/os_interface/hw_info_config.h"
|
||||
#include "shared/source/os_interface/os_inc_base.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/helpers/ult_hw_config.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/ult_device_factory.h"
|
||||
|
||||
#include "opencl/source/os_interface/os_inc_base.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_io_functions.h"
|
||||
#include "test.h"
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
*/
|
||||
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/mock_memory_operations_handler.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_csr.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_memory_manager.h"
|
||||
#include "test.h"
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
#include "shared/source/memory_manager/memory_operations_status.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/helpers/test_files.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/ult_device_factory.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_memory_manager.h"
|
||||
#include "test.h"
|
||||
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
#
|
||||
# Copyright (C) 2018-2020 Intel Corporation
|
||||
# Copyright (C) 2018-2021 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
set(RUNTIME_SRCS_COMMAND_STREAM
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/per_dss_backed_buffer.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_command_stream_receiver.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_command_stream_receiver.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_command_stream_receiver_hw.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_command_stream_receiver_hw_base.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_command_stream_receiver_hw_bdw_plus.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver_simulated_common_hw.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver_simulated_common_hw_base.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver_simulated_common_hw_bdw_plus.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver_with_aub_dump.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver_with_aub_dump.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/create_command_stream_impl.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/create_command_stream_impl.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}/command_stream_receiver_simulated_hw.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver_simulated_common_hw.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver_simulated_common_hw_base.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver_simulated_common_hw_bdw_plus.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/per_dss_backed_buffer.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/tbx_command_stream_receiver.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/tbx_command_stream_receiver.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/tbx_command_stream_receiver_hw.h
|
||||
|
|
|
@ -14,8 +14,7 @@
|
|||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/source/helpers/options.h"
|
||||
#include "shared/source/memory_manager/os_agnostic_memory_manager.h"
|
||||
|
||||
#include "opencl/source/os_interface/os_inc_base.h"
|
||||
#include "shared/source/os_interface/os_inc_base.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2018-2020 Intel Corporation
|
||||
# Copyright (C) 2018-2021 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
@ -9,7 +9,6 @@ set(RUNTIME_SRCS_OS_INTERFACE_BASE
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/metrics_library.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/metrics_library.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ocl_reg_path.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/os_inc_base.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters.h
|
||||
)
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
#include "opencl/source/os_interface/metrics_library.h"
|
||||
|
||||
#include "shared/source/helpers/hw_helper.h"
|
||||
|
||||
#include "opencl/source/os_interface/os_inc_base.h"
|
||||
#include "shared/source/os_interface/os_inc_base.h"
|
||||
|
||||
namespace NEO {
|
||||
///////////////////////////////////////////////////////
|
||||
|
|
|
@ -46,9 +46,9 @@ add_dependencies(unit_tests copy_test_files_per_product)
|
|||
|
||||
set(IGDRCL_SRCS_tests_local
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/libult/os_interface.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/tests_configuration.h
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/os_interface.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/test_configuration/unit_tests/ult_configuration.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/tests_configuration.h
|
||||
${NEO_SOURCE_DIR}/opencl/source/helpers/api_specific_config_ocl.cpp
|
||||
)
|
||||
|
||||
|
@ -86,7 +86,7 @@ set(NEO_IGDRCL_TESTS__TARGET_OBJECTS
|
|||
|
||||
if(DEFINED AUB_STREAM_PROJECT_NAME)
|
||||
add_library(aub_stream_mock_lib OBJECT EXCLUDE_FROM_ALL
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/aub_stream_mocks/aub_stream_interface_mock.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/aub_stream_mocks/aub_stream_interface_mock.cpp
|
||||
)
|
||||
list(APPEND NEO_IGDRCL_TESTS__TARGET_OBJECTS
|
||||
$<TARGET_OBJECTS:${AUB_STREAM_PROJECT_NAME}_all_hw>
|
||||
|
@ -135,6 +135,7 @@ endif()
|
|||
|
||||
target_include_directories(igdrcl_tests PRIVATE
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/mocks${BRANCH_DIR_SUFFIX}
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks${BRANCH_DIR_SUFFIX}
|
||||
${ENGINE_NODE_DIR}
|
||||
${KHRONOS_GL_HEADERS_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/config
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019-2020 Intel Corporation
|
||||
* Copyright (C) 2019-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
|
@ -7,13 +7,13 @@
|
|||
|
||||
#include "shared/source/execution_environment/execution_environment.h"
|
||||
#include "shared/source/execution_environment/root_device_environment.h"
|
||||
#include "shared/test/common/mocks/mock_aub_manager.h"
|
||||
|
||||
#include "opencl/source/cl_device/cl_device.h"
|
||||
#include "opencl/source/context/context.h"
|
||||
#include "opencl/source/platform/platform.h"
|
||||
#include "opencl/test/unit_test/api/cl_api_tests.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_center.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_manager.h"
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
#include "shared/source/device/device.h"
|
||||
#include "shared/source/helpers/file_io.h"
|
||||
#include "shared/test/common/helpers/test_files.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
|
||||
#include "opencl/source/context/context.h"
|
||||
#include "opencl/source/program/kernel_info.h"
|
||||
#include "opencl/source/program/program.h"
|
||||
#include "opencl/test/unit_test/helpers/kernel_binary_helper.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
|
||||
#include "cl_api_tests.h"
|
||||
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/helpers/default_hw_info.h"
|
||||
#include "shared/test/common/mocks/mock_aub_manager.h"
|
||||
|
||||
#include "opencl/test/unit_test/helpers/hw_helper_tests.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_center.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_manager.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include "third_party/aub_stream/headers/aubstream.h"
|
||||
|
|
|
@ -9,11 +9,11 @@ project(igdrcl_aub_tests)
|
|||
set(OPENCL_AUB_TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
list(APPEND IGDRCL_AUB_TESTS__TARGET_OBJECTS
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/os_interface.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/os_interface.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/test_macros/test_checks_ocl.cpp
|
||||
${NEO_SOURCE_DIR}/shared/source/aub/aub_stream_interface.cpp
|
||||
${NEO_SOURCE_DIR}/shared/test/common/test_macros/test_checks_shared.cpp
|
||||
${NEO_SOURCE_DIR}/shared/test/common/test_configuration/aub_tests/aub_tests_configuration.cpp
|
||||
${NEO_SOURCE_DIR}/shared/test/common/test_macros/test_checks_shared.cpp
|
||||
$<TARGET_OBJECTS:${BUILTINS_SOURCES_LIB_NAME}>
|
||||
$<TARGET_OBJECTS:${SCHEDULER_BINARY_LIB_NAME}>
|
||||
$<TARGET_OBJECTS:igdrcl_libult>
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "shared/source/helpers/string.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/mocks/mock_compiler_interface.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/unit_test/utilities/base_object_utils.h"
|
||||
|
||||
#include "opencl/source/built_ins/aux_translation_builtin.h"
|
||||
|
@ -32,7 +33,6 @@
|
|||
#include "opencl/test/unit_test/mocks/mock_buffer.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_builtins.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_command_queue.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_kernel.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_memory_manager.h"
|
||||
#include "opencl/test/unit_test/test_macros/test_checks_ocl.h"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "shared/source/helpers/hw_helper.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/mocks/mock_aub_manager.h"
|
||||
#include "shared/test/common/mocks/mock_graphics_allocation.h"
|
||||
|
||||
#include "opencl/source/helpers/hardware_context_controller.h"
|
||||
|
@ -19,7 +20,6 @@
|
|||
#include "opencl/test/unit_test/libult/ult_aub_command_stream_receiver.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_center.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_csr.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_manager.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_subcapture_manager.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_execution_environment.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_gmm.h"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "shared/source/helpers/hw_helper.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/mocks/mock_aub_manager.h"
|
||||
#include "shared/test/common/mocks/ult_device_factory.h"
|
||||
|
||||
#include "opencl/source/helpers/hardware_context_controller.h"
|
||||
|
@ -22,7 +23,6 @@
|
|||
#include "opencl/test/unit_test/mocks/mock_aub_center.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_csr.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_file_stream.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_manager.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_subcapture_manager.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_command_queue.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_csr.h"
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "shared/source/aub_mem_dump/page_table_entry_bits.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/mocks/mock_aub_manager.h"
|
||||
#include "shared/test/common/mocks/mock_graphics_allocation.h"
|
||||
|
||||
#include "opencl/source/command_stream/aub_command_stream_receiver_hw.h"
|
||||
|
@ -18,7 +19,6 @@
|
|||
#include "opencl/test/unit_test/mocks/mock_aub_center.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_csr.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_file_stream.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_manager.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_subcapture_manager.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_execution_environment.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_mdi.h"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "shared/source/helpers/timestamp_packet.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/source/utilities/tag_allocator.h"
|
||||
#include "shared/test/common/mocks/mock_aub_manager.h"
|
||||
|
||||
#include "opencl/source/command_stream/aub_command_stream_receiver_hw.h"
|
||||
#include "opencl/source/command_stream/command_stream_receiver_with_aub_dump.h"
|
||||
|
@ -24,7 +25,6 @@
|
|||
#include "opencl/test/unit_test/mocks/mock_allocation_properties.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_center.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_csr.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_manager.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_execution_environment.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_os_context.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_platform.h"
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
#include "shared/source/memory_manager/internal_allocation_storage.h"
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/mocks/mock_experimental_command_buffer.h"
|
||||
|
||||
#include "opencl/test/unit_test/fixtures/multi_root_device_fixture.h"
|
||||
#include "opencl/test/unit_test/fixtures/ult_command_stream_receiver_fixture.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_experimental_command_buffer.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_memory_manager.h"
|
||||
#include "test.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/helpers/variable_backup.h"
|
||||
#include "shared/test/common/mocks/mock_aub_manager.h"
|
||||
#include "shared/test/common/mocks/mock_graphics_allocation.h"
|
||||
#include "shared/test/common/mocks/mock_tbx_csr.h"
|
||||
|
||||
#include "opencl/source/command_stream/aub_command_stream_receiver.h"
|
||||
#include "opencl/source/command_stream/command_stream_receiver_with_aub_dump.h"
|
||||
|
@ -30,7 +32,6 @@
|
|||
#include "opencl/test/unit_test/fixtures/mock_aub_center_fixture.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_allocation_properties.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_center.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_manager.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_subcapture_manager.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_command_queue.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_execution_environment.h"
|
||||
|
@ -38,7 +39,6 @@
|
|||
#include "opencl/test/unit_test/mocks/mock_mdi.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_os_context.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_platform.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_tbx_csr.h"
|
||||
#include "test.h"
|
||||
|
||||
#include "tbx_command_stream_fixture.h"
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/test/common/mocks/mock_tbx_sockets.h"
|
||||
#include "shared/test/common/mocks/mock_tbx_stream.h"
|
||||
|
||||
#include "opencl/source/command_stream/tbx_command_stream_receiver_hw.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_tbx_sockets.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_tbx_stream.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
|
||||
#include "shared/source/execution_environment/root_device_environment.h"
|
||||
#include "shared/test/common/helpers/default_hw_info.h"
|
||||
#include "shared/test/common/mocks/mock_aub_manager.h"
|
||||
#include "shared/test/unit_test/tests_configuration.h"
|
||||
|
||||
#include "opencl/source/platform/platform.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_center.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_manager.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_platform.h"
|
||||
|
||||
namespace NEO {
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
#include "opencl/test/unit_test/global_environment.h"
|
||||
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
|
||||
#include "opencl/source/os_interface/os_inc_base.h"
|
||||
#include "shared/source/os_interface/os_inc_base.h"
|
||||
|
||||
TestEnvironment::TestEnvironment() {
|
||||
igcDebugVarStack.reserve(3);
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
#pragma once
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/source/os_interface/os_library.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ macro(macro_for_each_gen)
|
|||
if(EXISTS ${SRC_FILE})
|
||||
list(APPEND IGDRCL_SRCS_ENABLE_TESTED_HW ${SRC_FILE})
|
||||
endif()
|
||||
set(SRC_FILE ${NEO_SHARED_TEST_DIRECTORY}/unit_test/libult/${BRANCH}${GEN_TYPE_LOWER}.cpp)
|
||||
set(SRC_FILE ${NEO_SHARED_TEST_DIRECTORY}/common/libult/${BRANCH}${GEN_TYPE_LOWER}.cpp)
|
||||
if(EXISTS ${SRC_FILE})
|
||||
list(APPEND IGDRCL_SRCS_ENABLE_TESTED_HW ${SRC_FILE})
|
||||
endif()
|
||||
|
@ -49,23 +49,6 @@ apply_macro_for_each_gen("TESTED")
|
|||
|
||||
set(IGDRCL_SRCS_LIB_ULT
|
||||
${NEO_SHARED_DIRECTORY}/helpers/allow_deferred_deleter.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/utilities/cpuintrinsics.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/source/compiler_interface/default_cache_config.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/abort.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/helpers/debug_helpers.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/helpers/execution_environment_helper.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/helpers/execution_environment_helper.h
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/create_tbx_sockets.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/debug_manager.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/io_functions.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/source_level_debugger_ult.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/source_level_debugger_library.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/source_level_debugger_library.h
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/ult_aub_command_stream_receiver.h
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/ult_command_stream_receiver.h
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/utilities/debug_settings_reader_creator.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/base_ult_config_listener.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/base_ult_config_listener.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/helpers/memory_leak_listener.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/helpers/memory_leak_listener.h
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/helpers/memory_management.cpp
|
||||
|
@ -73,6 +56,23 @@ set(IGDRCL_SRCS_LIB_ULT
|
|||
${NEO_SHARED_TEST_DIRECTORY}/common/helpers/sip_init.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/helpers/test_files.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/helpers/test_files.h
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/create_tbx_sockets.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/source_level_debugger_library.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/source_level_debugger_library.h
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/source_level_debugger_ult.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/base_ult_config_listener.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/base_ult_config_listener.h
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/helpers/debug_helpers.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/utilities/cpuintrinsics.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/source/compiler_interface/default_cache_config.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/abort.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/helpers/execution_environment_helper.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/helpers/execution_environment_helper.h
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/debug_manager.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/io_functions.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/ult_aub_command_stream_receiver.h
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/ult_command_stream_receiver.h
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/utilities/debug_settings_reader_creator.cpp
|
||||
)
|
||||
|
||||
get_property(NEO_SHARED_TESTS_CMD_PARSE GLOBAL PROPERTY NEO_SHARED_TESTS_CMD_PARSE)
|
||||
|
@ -166,7 +166,7 @@ target_include_directories(igdrcl_libult PRIVATE
|
|||
|
||||
target_include_directories(igdrcl_libult_env PRIVATE
|
||||
$<TARGET_PROPERTY:gmock-gtest,INTERFACE_INCLUDE_DIRECTORIES>
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/mocks${BRANCH_DIR_SUFFIX}
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks${BRANCH_DIR_SUFFIX}
|
||||
)
|
||||
|
||||
set_property(GLOBAL PROPERTY IGDRCL_SRCS_ENABLE_TESTED_HW ${IGDRCL_SRCS_ENABLE_TESTED_HW})
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
#pragma once
|
||||
#include "shared/source/execution_environment/execution_environment.h"
|
||||
#include "shared/source/memory_manager/os_agnostic_memory_manager.h"
|
||||
#include "shared/test/common/mocks/mock_experimental_command_buffer.h"
|
||||
|
||||
#include "opencl/source/command_stream/aub_command_stream_receiver_hw.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_experimental_command_buffer.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
|
|
|
@ -14,8 +14,7 @@
|
|||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/test/common/helpers/dispatch_flags_helper.h"
|
||||
#include "shared/test/common/helpers/ult_hw_config.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_experimental_command_buffer.h"
|
||||
#include "shared/test/common/mocks/mock_experimental_command_buffer.h"
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
|
|
@ -21,13 +21,13 @@ add_executable(igdrcl_${target_name}
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/os_interface_linux_tests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test_mode.h
|
||||
${NEO_SHARED_DIRECTORY}/os_interface/linux/sys_calls_linux.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/aub_stream_mocks/aub_stream_interface_mock.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/source/dll/linux/allocator_helper.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/source/dll/linux/drm_neo_create.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/source/dll/linux/options_linux.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/source/dll/linux/os_interface.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/source/os_interface/linux/platform_teardown_linux.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/source/helpers/api_specific_config_ocl.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/aub_stream_mocks/aub_stream_interface_mock.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/source/os_interface/linux/platform_teardown_linux.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/linux${BRANCH_DIR_SUFFIX}/drm_other_requests.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/os_interface/linux/create_drm_memory_manager.cpp
|
||||
)
|
||||
|
|
|
@ -4,15 +4,6 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
set(IGDRCL_SRCS_tests_compiler_mocks
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_cif.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_cif.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_compilers.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_compilers.h
|
||||
)
|
||||
|
||||
set_property(GLOBAL PROPERTY IGDRCL_SRCS_tests_compiler_mocks ${IGDRCL_SRCS_tests_compiler_mocks})
|
||||
|
||||
set(IGDRCL_SRCS_tests_mocks
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_allocation_properties.h
|
||||
|
@ -21,13 +12,12 @@ set(IGDRCL_SRCS_tests_mocks
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/mock_aub_center.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_aub_csr.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_aub_file_stream.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_aub_manager.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_aub_stream.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_aub_subcapture_manager.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_block_kernel_manager.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_buffer.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_builtins.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_builtins.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_builtins.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_cl_device.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_cl_device.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_cl_execution_environment.h
|
||||
|
@ -38,24 +28,19 @@ set(IGDRCL_SRCS_tests_mocks
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/mock_device_queue.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_event.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_execution_environment.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_experimental_command_buffer.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_gmm.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_gmm_client_context_base.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_gmm_client_context_base.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_gmm_page_table_mngr.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_gmm_page_table_mngr.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_gmm_resource_info.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_gmm_page_table_mngr.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_gmm_resource_info.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/mock_gmm_client_context.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/mock_gmm_client_context.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_gmm_resource_info.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_host_ptr_manager.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_internal_allocation_storage.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_image.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_internal_allocation_storage.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_io_functions.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_kernel.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_kernel.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_kernel_info.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_kernel_info.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_kernel_info.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_lrca_helper.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_memory_manager.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_memory_manager.h
|
||||
|
@ -63,20 +48,21 @@ set(IGDRCL_SRCS_tests_mocks
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/mock_ostime.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_platform.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_platform.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_program.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_program.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_program.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_sampler.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_sharing_factory.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_source_level_debugger.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_submissions_aggregator.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_svm_manager.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_tbx_csr.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_tbx_stream.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_timestamp_container.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ult_cl_device_factory.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ult_cl_device_factory.h
|
||||
${NEO_SHARED_DIRECTORY}/gmm_helper/page_table_mngr_impl.cpp
|
||||
${IGDRCL_SRCS_tests_compiler_mocks}
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks${BRANCH_DIR_SUFFIX}/mock_gmm_client_context.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks${BRANCH_DIR_SUFFIX}/mock_gmm_client_context.h
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_experimental_command_buffer.h
|
||||
${NEO_CORE_tests_compiler_mocks}
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "shared/source/program/program_info_from_patchtokens.h"
|
||||
#include "shared/test/common/helpers/default_hw_info.h"
|
||||
#include "shared/test/common/mocks/mock_compiler_interface.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/mock_graphics_allocation.h"
|
||||
|
||||
#include "opencl/source/context/context.h"
|
||||
|
@ -20,7 +21,6 @@
|
|||
#include "opencl/source/program/kernel_info.h"
|
||||
#include "opencl/test/unit_test/helpers/ult_limits.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_cl_device.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
|
||||
namespace NEO {
|
||||
ClDeviceVector toClDeviceVector(ClDevice &clDevice) {
|
||||
|
|
|
@ -17,13 +17,13 @@ endif()
|
|||
add_custom_target(run_mt_unit_tests)
|
||||
add_executable(igdrcl_mt_tests EXCLUDE_FROM_ALL
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test_mode.h
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/libult/os_interface.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/test_configuration/unit_tests/ult_configuration.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/source/helpers/api_specific_config_ocl.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/libult/os_interface.cpp
|
||||
${NEO_SOURCE_DIR}/opencl/test/unit_test/test_macros/test_checks_ocl.cpp
|
||||
${NEO_SOURCE_DIR}/shared/source/aub/aub_stream_interface.cpp
|
||||
${NEO_SOURCE_DIR}/shared/test/common/test_macros/test_checks_shared.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test_mode.h
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/test_configuration/unit_tests/ult_configuration.cpp
|
||||
$<TARGET_OBJECTS:igdrcl_libult>
|
||||
$<TARGET_OBJECTS:igdrcl_libult_cs>
|
||||
$<TARGET_OBJECTS:igdrcl_libult_env>
|
||||
|
|
|
@ -43,7 +43,7 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
get_property(IGDRCL_SRCS_tests_compiler_mocks GLOBAL PROPERTY IGDRCL_SRCS_tests_compiler_mocks)
|
||||
get_property(NEO_CORE_tests_compiler_mocks GLOBAL PROPERTY NEO_CORE_tests_compiler_mocks)
|
||||
|
||||
set(IGDRCL_SRCS_offline_compiler_tests
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
|
@ -61,11 +61,13 @@ set(IGDRCL_SRCS_offline_compiler_tests
|
|||
${NEO_SHARED_DIRECTORY}/helpers/file_io.cpp
|
||||
${NEO_SHARED_DIRECTORY}/memory_manager/deferred_deleter.cpp
|
||||
${NEO_SHARED_DIRECTORY}/memory_manager/deferred_deleter.h
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_compilers.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_compilers.h
|
||||
${NEO_SHARED_TEST_DIRECTORY}/unit_test/device_binary_format/zebin_tests.h
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/helpers/test_files.cpp
|
||||
${IGDRCL_SRCS_cloc}
|
||||
${IGDRCL_SRCS_offline_compiler_mock}
|
||||
${IGDRCL_SRCS_tests_compiler_mocks}
|
||||
${NEO_CORE_tests_compiler_mocks}
|
||||
${CLOC_LIB_SRCS_LIB}
|
||||
${CLOC_LIB_SRCS_UTILITIES}
|
||||
)
|
||||
|
|
|
@ -8,10 +8,9 @@
|
|||
#pragma once
|
||||
|
||||
#include "shared/offline_compiler/source/offline_compiler.h"
|
||||
#include "shared/source/os_interface/os_inc_base.h"
|
||||
#include "shared/test/common/helpers/test_files.h"
|
||||
|
||||
#include "opencl/source/os_interface/os_inc_base.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
#include "shared/source/helpers/file_io.h"
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/unit_test/device_binary_format/zebin_tests.h"
|
||||
|
||||
#include "opencl/source/platform/extensions.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
|
||||
#include "compiler_options.h"
|
||||
#include "environment.h"
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
|
||||
#include "shared/source/compiler_interface/compiler_interface.h"
|
||||
#include "shared/source/compiler_interface/compiler_interface.inl"
|
||||
#include "shared/test/common/mocks/mock_cif.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_cif.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_cl_device.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_program.h"
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/helpers/ult_hw_config.h"
|
||||
#include "shared/test/common/helpers/variable_backup.h"
|
||||
#include "shared/test/common/libult/source_level_debugger_library.h"
|
||||
|
||||
#include "opencl/source/platform/platform.h"
|
||||
#include "opencl/source/program/kernel_info.h"
|
||||
#include "opencl/test/unit_test/helpers/execution_environment_helper.h"
|
||||
#include "opencl/test/unit_test/libult/source_level_debugger_library.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_cl_device.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_platform.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_source_level_debugger.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
|
@ -8,10 +8,9 @@
|
|||
#include "helper.h"
|
||||
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/source/os_interface/os_inc_base.h"
|
||||
#include "shared/source/os_interface/os_library.h"
|
||||
|
||||
#include "opencl/source/os_interface/os_inc_base.h"
|
||||
|
||||
#include "igfxfmid.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
|
|
@ -8,10 +8,9 @@
|
|||
#include "iga_wrapper.h"
|
||||
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/source/os_interface/os_inc_base.h"
|
||||
#include "shared/source/os_interface/os_library.h"
|
||||
|
||||
#include "opencl/source/os_interface/os_inc_base.h"
|
||||
|
||||
#include "helper.h"
|
||||
#include "igfxfmid.h"
|
||||
#include "translate_platform_base.h"
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
#include "shared/source/helpers/hw_helper.h"
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/source/helpers/string.h"
|
||||
#include "shared/source/os_interface/os_inc_base.h"
|
||||
#include "shared/source/os_interface/os_library.h"
|
||||
|
||||
#include "opencl/source/os_interface/os_inc_base.h"
|
||||
#include "opencl/source/platform/extensions.h"
|
||||
|
||||
#include "cif/common/cif_main.h"
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
#include "shared/source/debug_settings/debug_settings_manager.h"
|
||||
#include "shared/source/device/device.h"
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
|
||||
#include "opencl/source/os_interface/os_inc_base.h"
|
||||
#include "shared/source/os_interface/os_inc_base.h"
|
||||
|
||||
#include "cif/common/cif_main.h"
|
||||
#include "cif/helpers/error.h"
|
||||
|
|
|
@ -28,6 +28,7 @@ set(NEO_CORE_OS_INTERFACE
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/os_time.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/os_time.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/print.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/os_inc_base.h
|
||||
)
|
||||
|
||||
set_property(GLOBAL PROPERTY NEO_CORE_OS_INTERFACE ${NEO_CORE_OS_INTERFACE})
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_manager.h"
|
||||
#include "shared/test/common/mocks/mock_aub_manager.h"
|
||||
|
||||
namespace NEO {
|
||||
aub_stream::AubManager *createAubManager(uint32_t productFamily, uint32_t devicesCount, uint64_t memoryBankSize, uint32_t stepping, bool localMemorySupported, uint32_t streamMode, uint64_t gpuAddressSpace) {
|
|
@ -1,15 +1,14 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/tbx/tbx_sockets_imp.h"
|
||||
#include "shared/test/common/mocks/mock_tbx_sockets.h"
|
||||
#include "shared/test/unit_test/tests_configuration.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_tbx_sockets.h"
|
||||
|
||||
namespace NEO {
|
||||
TbxSockets *TbxSockets::create() {
|
||||
if (testMode == TestMode::AubTestsWithTbx) {
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019-2020 Intel Corporation
|
||||
* Copyright (C) 2019-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
|
@ -6,8 +6,7 @@
|
|||
*/
|
||||
|
||||
#include "shared/source/source_level_debugger/source_level_debugger.h"
|
||||
|
||||
#include "opencl/test/unit_test/libult/source_level_debugger_library.h"
|
||||
#include "shared/test/common/libult/source_level_debugger_library.h"
|
||||
|
||||
namespace NEO {
|
||||
OsLibrary *SourceLevelDebugger::loadDebugger() {
|
|
@ -4,17 +4,36 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
set(NEO_CORE_tests_compiler_mocks
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_cif.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_cif.h
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_compilers.cpp
|
||||
${NEO_SHARED_TEST_DIRECTORY}/common/mocks/mock_compilers.h
|
||||
)
|
||||
|
||||
set_property(GLOBAL PROPERTY NEO_CORE_tests_compiler_mocks ${NEO_CORE_tests_compiler_mocks})
|
||||
|
||||
set(NEO_CORE_tests_mocks
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_aub_manager.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_bindless_heaps_helper.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_cif.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_cif.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_command_stream_receiver.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_command_stream_receiver.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_compiler_interface_spirv.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_compiler_interface_spirv.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_compilers.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_compilers.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_direct_submission_hw.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_direct_submission_diagnostic_collector.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_dispatch_kernel_encoder_interface.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_dispatch_kernel_encoder_interface.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_experimental_command_buffer.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_gmm_client_context_base.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_gmm_client_context_base.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/mock_gmm_client_context.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/mock_gmm_client_context.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_debugger.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_device.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_device.h
|
||||
|
@ -31,6 +50,8 @@ set(NEO_CORE_tests_mocks
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/mock_deferred_deleter.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_deferred_deleter.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_physical_address_allocator.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_tbx_csr.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_tbx_stream.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ult_device_factory.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ult_device_factory.h
|
||||
)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_cif.h"
|
||||
#include "shared/test/common/mocks/mock_cif.h"
|
||||
|
||||
#include "cif/builtins/memory/buffer/buffer.h"
|
||||
#include "cif/export/library_api.h"
|
|
@ -9,13 +9,12 @@
|
|||
|
||||
#include "shared/source/helpers/file_io.h"
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/source/os_interface/os_inc_base.h"
|
||||
#include "shared/test/common/helpers/test_files.h"
|
||||
#include "shared/test/common/mocks/mock_compiler_interface.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
#include "shared/test/common/mocks/mock_sip.h"
|
||||
|
||||
#include "opencl/source/os_interface/os_inc_base.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
|
||||
#include "cif/macros/enable.h"
|
||||
#include "compiler_options.h"
|
||||
#include "ocl_igc_interface/fcl_ocl_device_ctx.h"
|
|
@ -8,8 +8,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "shared/source/compiler_interface/compiler_interface.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_cif.h"
|
||||
#include "shared/test/common/mocks/mock_cif.h"
|
||||
|
||||
#include "ocl_igc_interface/fcl_ocl_device_ctx.h"
|
||||
#include "ocl_igc_interface/igc_ocl_device_ctx.h"
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
|
@ -1,12 +1,12 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "opencl/test/unit_test/mocks/mock_gmm_client_context_base.h"
|
||||
#include "shared/test/common/mocks/mock_gmm_client_context_base.h"
|
||||
|
||||
namespace NEO {
|
||||
class MockGmmClientContext : public MockGmmClientContextBase {
|
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_gmm_client_context.h"
|
||||
#include "shared/test/common/mocks/mock_gmm_client_context_base.h"
|
||||
|
||||
namespace NEO {
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
|
@ -11,12 +11,12 @@
|
|||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/helpers/test_files.h"
|
||||
#include "shared/test/common/mocks/mock_cif.h"
|
||||
#include "shared/test/common/mocks/mock_compiler_interface.h"
|
||||
#include "shared/test/common/mocks/mock_compilers.h"
|
||||
|
||||
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
|
||||
#include "opencl/test/unit_test/global_environment.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_cif.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_compilers.h"
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
#include "hw_cmds.h"
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
#include "shared/source/gmm_helper/client_context/gmm_handle_allocator.h"
|
||||
#include "shared/source/gmm_helper/resource_info.h"
|
||||
#include "shared/test/common/mocks/mock_gmm_client_context.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_gmm_client_context.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_gmm_resource_info.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_hw_helper.h"
|
||||
#include "test.h"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include "shared/test/common/helpers/memory_leak_listener.h"
|
||||
#include "shared/test/common/helpers/test_files.h"
|
||||
#include "shared/test/common/helpers/ult_hw_config.inl"
|
||||
#include "shared/test/common/mocks/mock_gmm_client_context.h"
|
||||
#include "shared/test/common/mocks/mock_sip.h"
|
||||
#include "shared/test/common/test_macros/test_checks_shared.h"
|
||||
#include "shared/test/unit_test/tests_configuration.h"
|
||||
|
@ -24,7 +25,6 @@
|
|||
#include "opencl/test/unit_test/global_environment.h"
|
||||
#include "opencl/test/unit_test/helpers/kernel_binary_helper.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_gmm.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_gmm_client_context.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_program.h"
|
||||
#include "opencl/test/unit_test/ult_config_listener.h"
|
||||
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
|
||||
#include "shared/test/unit_test/os_interface/aub_memory_operations_handler_tests.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_aub_manager.h"
|
||||
#include "shared/test/common/mocks/mock_aub_manager.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_gmm.h"
|
||||
|
||||
#include "aub_mem_dump.h"
|
||||
|
|
Loading…
Reference in New Issue