Skip to content

Commit 9f5152e

Browse files
Move linux files to core
memory_info engine_info os_inc Related-To: NEO-3982 Change-Id: I52ef357f790497fc6efcd590db277ce96ec1e579 Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent 9a11336 commit 9f5152e

File tree

11 files changed

+17
-12
lines changed

11 files changed

+17
-12
lines changed

core/os_interface/linux/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ set(NEO_CORE_OS_INTERFACE_LINUX
88
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
99
${CMAKE_CURRENT_SOURCE_DIR}/debug_env_reader.cpp
1010
${CMAKE_CURRENT_SOURCE_DIR}/debug_env_reader.h
11+
${CMAKE_CURRENT_SOURCE_DIR}/engine_info.h
12+
${CMAKE_CURRENT_SOURCE_DIR}/memory_info.h
13+
${CMAKE_CURRENT_SOURCE_DIR}/os_inc.h
1114
${CMAKE_CURRENT_SOURCE_DIR}/os_library_linux.cpp
1215
${CMAKE_CURRENT_SOURCE_DIR}/os_library_linux.h
1316
${CMAKE_CURRENT_SOURCE_DIR}/os_memory_linux.cpp
@@ -16,3 +19,4 @@ set(NEO_CORE_OS_INTERFACE_LINUX
1619
)
1720

1821
set_property(GLOBAL PROPERTY NEO_CORE_OS_INTERFACE_LINUX ${NEO_CORE_OS_INTERFACE_LINUX})
22+
add_subdirectories()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99

1010
#define PATH_SEPARATOR '/'
1111
#define __cdecl
12+
namespace Os {
13+
// Pci Path
14+
extern const char *sysFsPciPath;
15+
} // namespace Os

runtime/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,15 @@ if(WIN32)
8181
set(IGDRCL_EXTRA_LIBS Ws2_32)
8282
target_include_directories(${NEO_STATIC_LIB_NAME} PUBLIC
8383
${WDK_INCLUDE_PATHS}
84-
os_interface/windows
84+
${NEO_SOURCE_DIR}/core/os_interface/windows
85+
${NEO_SOURCE_DIR}/runtime/os_interface/windows
8586
)
8687
target_compile_definitions(${NEO_STATIC_LIB_NAME} PRIVATE OGL=1)
8788
else()
8889
set(IGDRCL_EXTRA_LIBS dl pthread)
8990
target_include_directories(${NEO_STATIC_LIB_NAME} PUBLIC
90-
os_interface/linux
91+
${NEO_SOURCE_DIR}/core/os_interface/linux
92+
${NEO_SOURCE_DIR}/runtime/os_interface/linux
9193
${I915_INCLUDES_DIR}
9294
)
9395
endif()

runtime/os_interface/linux/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,11 @@ set(RUNTIME_SRCS_OS_INTERFACE_LINUX
3333
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/drm_query.cpp
3434
${CMAKE_CURRENT_SOURCE_DIR}/drm_memory_operations_handler.cpp
3535
${CMAKE_CURRENT_SOURCE_DIR}/drm_memory_operations_handler.h
36-
${CMAKE_CURRENT_SOURCE_DIR}/engine_info.h
3736
${CMAKE_CURRENT_SOURCE_DIR}/hw_info_config.cpp
3837
${CMAKE_CURRENT_SOURCE_DIR}/linux_inc.cpp
39-
${CMAKE_CURRENT_SOURCE_DIR}/memory_info.h
4038
${CMAKE_CURRENT_SOURCE_DIR}/ocl_reg_path.cpp
4139
${CMAKE_CURRENT_SOURCE_DIR}/os_context_linux.cpp
4240
${CMAKE_CURRENT_SOURCE_DIR}/os_context_linux.h
43-
${CMAKE_CURRENT_SOURCE_DIR}/os_inc.h
4441
${CMAKE_CURRENT_SOURCE_DIR}/os_interface.cpp
4542
${CMAKE_CURRENT_SOURCE_DIR}/os_interface.h
4643
${CMAKE_CURRENT_SOURCE_DIR}/os_metrics_library.cpp

runtime/os_interface/linux/drm_neo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
#include "core/helpers/hw_info.h"
1111
#include "core/memory_manager/memory_constants.h"
12+
#include "core/os_interface/linux/os_inc.h"
1213
#include "core/utilities/directory.h"
13-
#include "runtime/os_interface/os_inc_base.h"
1414

1515
#include <cstdio>
1616
#include <cstring>

runtime/os_interface/linux/drm_neo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
#pragma once
99
#include "core/helpers/basic_math.h"
10-
#include "runtime/os_interface/linux/engine_info.h"
11-
#include "runtime/os_interface/linux/memory_info.h"
10+
#include "core/os_interface/linux/engine_info.h"
11+
#include "core/os_interface/linux/memory_info.h"
1212
#include "runtime/utilities/api_intercept.h"
1313

1414
#include "drm/i915_drm.h"

runtime/os_interface/linux/linux_inc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
*/
77

8-
#include "runtime/os_interface/linux/os_inc.h"
8+
#include "core/os_interface/linux/os_inc.h"
99
namespace Os {
1010
const char *fileSeparator = "/";
1111
}

runtime/os_interface/os_inc_base.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ extern const char *testDllName;
1616

1717
// OS specific directory separator
1818
extern const char *fileSeparator;
19-
// Pci Path
20-
extern const char *sysFsPciPath;
2119

2220
// Os specific Metrics Library name
2321
extern const char *metricsLibraryDllName;

0 commit comments

Comments
 (0)