Skip to content

Commit 8b36473

Browse files
Move command stream receiver files to shared
Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent 7f73579 commit 8b36473

File tree

68 files changed

+72
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+72
-93
lines changed

level_zero/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ if(BUILD_WITH_L0)
213213
add_library(${TARGET_NAME_L0}
214214
SHARED
215215
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
216+
${NEO_SHARED_DIRECTORY}/dll/create_command_stream.cpp
216217
${NEO_SHARED_DIRECTORY}/dll/options_dll.cpp
217218
${NEO_SHARED_DIRECTORY}/gmm_helper/page_table_mngr.cpp
218219
${NEO_SHARED_DIRECTORY}/gmm_helper/resource_info.cpp
@@ -225,7 +226,6 @@ if(BUILD_WITH_L0)
225226

226227
target_sources(${TARGET_NAME_L0}
227228
PRIVATE
228-
${COMPUTE_RUNTIME_DIR}/opencl/source/dll/create_command_stream.cpp
229229
${COMPUTE_RUNTIME_DIR}/opencl/source/dll/create_deferred_deleter.cpp
230230
${COMPUTE_RUNTIME_DIR}/opencl/source/dll/create_memory_manager_${DRIVER_MODEL}.cpp
231231
${COMPUTE_RUNTIME_DIR}/opencl/source/dll/create_tbx_sockets.cpp

opencl/source/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ target_include_directories(${NEO_STATIC_LIB_NAME} PUBLIC
5858
${NEO__IGC_INCLUDE_DIR}
5959
${THIRD_PARTY_DIR}
6060
${NEO__GMM_INCLUDE_DIR}
61-
${CMAKE_CURRENT_SOURCE_DIR}/os_interface/create_command_stream_receiver_${DRIVER_MODEL}
6261
)
6362

6463
target_compile_definitions(${NEO_STATIC_LIB_NAME} PUBLIC

opencl/source/dll/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ endif()
1212

1313
set(RUNTIME_SRCS_DLL_BASE
1414
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
15-
${CMAKE_CURRENT_SOURCE_DIR}/create_command_stream.cpp
1615
${CMAKE_CURRENT_SOURCE_DIR}/create_deferred_deleter.cpp
1716
${CMAKE_CURRENT_SOURCE_DIR}/create_memory_manager_${DRIVER_MODEL}.cpp
1817
${CMAKE_CURRENT_SOURCE_DIR}/create_tbx_sockets.cpp
1918
${CMAKE_CURRENT_SOURCE_DIR}/debug_manager.cpp
2019
${CMAKE_CURRENT_SOURCE_DIR}/source_level_debugger_dll.cpp
2120
${CMAKE_CURRENT_SOURCE_DIR}/get_devices.cpp
2221
${NEO_SHARED_DIRECTORY}/built_ins/sip_init.cpp
22+
${NEO_SHARED_DIRECTORY}/dll/create_command_stream.cpp
2323
${NEO_SHARED_DIRECTORY}/dll/options_dll.cpp
2424
${NEO_SHARED_DIRECTORY}/gmm_helper/resource_info.cpp
2525
${NEO_SHARED_DIRECTORY}/gmm_helper/page_table_mngr.cpp

opencl/source/enable_gens.cmake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
#
66

77
set(RUNTIME_SRCS_GENX_CPP_WINDOWS
8-
windows/command_stream_receiver
98
windows/gmm_callbacks
109
)
1110

1211
set(RUNTIME_SRCS_GENX_CPP_LINUX
13-
linux/command_stream_receiver
1412
)
1513

1614
if(NOT DISABLE_WDDM_LINUX)
@@ -20,20 +18,16 @@ if(NOT DISABLE_WDDM_LINUX)
2018
endif()
2119

2220
set(RUNTIME_SRCS_GENX_CPP_BASE
23-
aub_command_stream_receiver
2421
aub_mem_dump
2522
buffer
2623
cl_hw_helper
2724
command_queue
28-
command_stream_receiver_simulated_common_hw
29-
create_device_command_stream_receiver
3025
experimental_command_buffer
3126
gpgpu_walker
3227
hardware_commands_helper
3328
hw_info
3429
image
3530
sampler
36-
tbx_command_stream_receiver
3731
)
3832

3933
macro(macro_for_each_platform)

opencl/source/helpers/windows/gmm_callbacks_tgllp_and_later.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
#include "shared/source/command_stream/command_stream_receiver_with_aub_dump.h"
1111
#include "shared/source/helpers/hw_helper.h"
1212
#include "shared/source/helpers/windows/gmm_callbacks.h"
13-
14-
#include "opencl/source/os_interface/windows/wddm_device_command_stream.h"
13+
#include "shared/source/os_interface/windows/wddm_device_command_stream.h"
1514

1615
namespace NEO {
1716

opencl/source/os_interface/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
set(RUNTIME_SRCS_OS_INTERFACE_BASE
88
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
9-
${CMAKE_CURRENT_SOURCE_DIR}/create_command_stream_receiver_${DRIVER_MODEL}/create_command_stream_receiver.inl
109
${CMAKE_CURRENT_SOURCE_DIR}/metrics_library.cpp
1110
${CMAKE_CURRENT_SOURCE_DIR}/metrics_library.h
1211
${CMAKE_CURRENT_SOURCE_DIR}/ocl_reg_path.h

opencl/source/os_interface/linux/CMakeLists.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,12 @@ set(RUNTIME_SRCS_OS_INTERFACE_LINUX
99
${CMAKE_CURRENT_SOURCE_DIR}/api_linux.cpp
1010
${CMAKE_CURRENT_SOURCE_DIR}/d3d_sharing_functions.h
1111
${CMAKE_CURRENT_SOURCE_DIR}/device_caps_init_linux.cpp
12-
${CMAKE_CURRENT_SOURCE_DIR}/device_command_stream.inl
13-
${CMAKE_CURRENT_SOURCE_DIR}/drm_command_stream.h
14-
${CMAKE_CURRENT_SOURCE_DIR}/drm_command_stream.inl
15-
${CMAKE_CURRENT_SOURCE_DIR}/drm_command_stream_bdw_and_later.inl
1612
${CMAKE_CURRENT_SOURCE_DIR}/ocl_reg_path.cpp
1713
${CMAKE_CURRENT_SOURCE_DIR}/os_metrics_library.cpp
1814
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_linux.cpp
1915
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_linux.h
2016
)
2117

22-
if(SUPPORT_XEHP_AND_LATER)
23-
list(APPEND RUNTIME_SRCS_OS_INTERFACE_LINUX
24-
${CMAKE_CURRENT_SOURCE_DIR}/drm_command_stream_xehp_and_later.inl
25-
)
26-
endif()
27-
2818
if(UNIX)
2919
target_sources(${NEO_STATIC_LIB_NAME} PRIVATE ${RUNTIME_SRCS_OS_INTERFACE_LINUX})
3020
endif()

opencl/source/os_interface/windows/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ set(RUNTIME_SRCS_OS_INTERFACE_WINDOWS
1111
${CMAKE_CURRENT_SOURCE_DIR}/d3d9_sharing_functions.cpp
1212
${CMAKE_CURRENT_SOURCE_DIR}/d3d_sharing_functions.h
1313
${CMAKE_CURRENT_SOURCE_DIR}/device_caps_init_win.cpp
14-
${CMAKE_CURRENT_SOURCE_DIR}/device_command_stream.inl
1514
${CMAKE_CURRENT_SOURCE_DIR}/ocl_reg_path.cpp
1615
${CMAKE_CURRENT_SOURCE_DIR}/os_metrics_library.cpp
1716
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_win.cpp
1817
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_win.h
19-
${CMAKE_CURRENT_SOURCE_DIR}/wddm_device_command_stream.h
20-
${CMAKE_CURRENT_SOURCE_DIR}/wddm_device_command_stream.inl
2118
)
2219

2320
if(WIN32)

opencl/test/unit_test/gen12lp/windows/gmm_callbacks_tests_gen12lp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
#include "shared/source/execution_environment/execution_environment.h"
1212
#include "shared/source/helpers/hw_helper.h"
1313
#include "shared/source/helpers/windows/gmm_callbacks.h"
14+
#include "shared/source/os_interface/windows/wddm_device_command_stream.h"
1415
#include "shared/test/common/cmd_parse/hw_parse.h"
1516
#include "shared/test/common/helpers/debug_manager_state_restore.h"
1617
#include "shared/test/common/helpers/default_hw_info.h"
1718

18-
#include "opencl/source/os_interface/windows/wddm_device_command_stream.h"
1919
#include "opencl/source/platform/platform.h"
2020
#include "opencl/test/unit_test/helpers/execution_environment_helper.h"
2121
#include "opencl/test/unit_test/libult/ult_command_stream_receiver.h"

opencl/test/unit_test/mocks/linux/mock_drm_command_stream_receiver.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
*/
77

88
#pragma once
9+
#include "shared/source/os_interface/linux/drm_command_stream.h"
910
#include "shared/test/common/helpers/ult_hw_config.h"
1011

11-
#include "opencl/source/os_interface/linux/drm_command_stream.h"
12-
1312
using namespace NEO;
1413

1514
template <typename GfxFamily>

0 commit comments

Comments
 (0)