Skip to content

Commit 69390c7

Browse files
Move performance counters to shared
Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent 6f0baae commit 69390c7

19 files changed

+20
-17
lines changed

opencl/source/event/event.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#pragma once
99
#include "shared/source/helpers/flush_stamp.h"
1010
#include "shared/source/os_interface/os_time.h"
11+
#include "shared/source/os_interface/performance_counters.h"
1112
#include "shared/source/utilities/arrayref.h"
1213
#include "shared/source/utilities/idlist.h"
1314
#include "shared/source/utilities/iflist.h"
@@ -17,7 +18,6 @@
1718
#include "opencl/source/event/hw_timestamps.h"
1819
#include "opencl/source/helpers/base_object.h"
1920
#include "opencl/source/helpers/task_information.h"
20-
#include "opencl/source/os_interface/performance_counters.h"
2121

2222
#include <atomic>
2323
#include <cstdint>

opencl/source/os_interface/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ set(RUNTIME_SRCS_OS_INTERFACE_BASE
99
${CMAKE_CURRENT_SOURCE_DIR}/metrics_library.cpp
1010
${CMAKE_CURRENT_SOURCE_DIR}/metrics_library.h
1111
${CMAKE_CURRENT_SOURCE_DIR}/ocl_reg_path.h
12-
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters.cpp
13-
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters.h
1412
)
1513

1614
target_sources(${NEO_STATIC_LIB_NAME} PRIVATE ${RUNTIME_SRCS_OS_INTERFACE_BASE})

opencl/source/os_interface/linux/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ set(RUNTIME_SRCS_OS_INTERFACE_LINUX
1111
${CMAKE_CURRENT_SOURCE_DIR}/device_caps_init_linux.cpp
1212
${CMAKE_CURRENT_SOURCE_DIR}/ocl_reg_path.cpp
1313
${CMAKE_CURRENT_SOURCE_DIR}/os_metrics_library.cpp
14-
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_linux.cpp
15-
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_linux.h
1614
)
1715

1816
if(UNIX)

opencl/source/os_interface/windows/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ set(RUNTIME_SRCS_OS_INTERFACE_WINDOWS
1313
${CMAKE_CURRENT_SOURCE_DIR}/device_caps_init_win.cpp
1414
${CMAKE_CURRENT_SOURCE_DIR}/ocl_reg_path.cpp
1515
${CMAKE_CURRENT_SOURCE_DIR}/os_metrics_library.cpp
16-
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_win.cpp
17-
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_win.h
1816
)
1917

2018
if(WIN32)

opencl/test/unit_test/os_interface/linux/mock_performance_counters_linux.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
*/
77

88
#pragma once
9-
#include "opencl/source/os_interface/linux/performance_counters_linux.h"
9+
#include "shared/source/os_interface/linux/performance_counters_linux.h"
10+
1011
#include "opencl/test/unit_test/os_interface/mock_performance_counters.h"
1112

1213
namespace NEO {

opencl/test/unit_test/os_interface/linux/performance_counters_linux_tests.cpp

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

88
#include "shared/source/os_interface/linux/drm_neo.h"
9+
#include "shared/source/os_interface/linux/performance_counters_linux.h"
910
#include "shared/source/os_interface/os_interface.h"
1011

11-
#include "opencl/source/os_interface/linux/performance_counters_linux.h"
1212
#include "opencl/test/unit_test/os_interface/mock_performance_counters.h"
1313

1414
#include "gtest/gtest.h"

opencl/test/unit_test/os_interface/performance_counters_gen_tests.cpp

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

8-
#include "opencl/source/os_interface/performance_counters.h"
8+
#include "shared/source/os_interface/performance_counters.h"
9+
910
#include "test.h"
1011

1112
using namespace NEO;

opencl/test/unit_test/os_interface/windows/mock_performance_counters_win.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
*/
77

88
#pragma once
9-
#include "opencl/source/os_interface/windows/performance_counters_win.h"
9+
#include "shared/source/os_interface/windows/performance_counters_win.h"
10+
1011
#include "opencl/test/unit_test/os_interface/mock_performance_counters.h"
1112

1213
namespace NEO {

opencl/test/unit_test/os_interface/windows/performance_counters_win_tests.cpp

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

8-
#include "opencl/source/os_interface/windows/performance_counters_win.h"
8+
#include "shared/source/os_interface/windows/performance_counters_win.h"
9+
910
#include "opencl/test/unit_test/os_interface/mock_performance_counters.h"
1011

1112
#include "gtest/gtest.h"

shared/source/device/device.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
#include "shared/source/helpers/engine_control.h"
1616
#include "shared/source/helpers/engine_node_helper.h"
1717
#include "shared/source/helpers/hw_info.h"
18+
#include "shared/source/os_interface/performance_counters.h"
1819
#include "shared/source/program/sync_buffer_handler.h"
1920

20-
#include "opencl/source/os_interface/performance_counters.h"
21-
2221
#include "engine_group_types.h"
2322

2423
namespace NEO {

0 commit comments

Comments
 (0)