Move performance counters to shared

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2021-09-24 09:02:44 +00:00
committed by Compute-Runtime-Automation
parent 6f0baaeab9
commit 69390c7eca
19 changed files with 20 additions and 17 deletions

View File

@@ -8,6 +8,7 @@
#pragma once
#include "shared/source/helpers/flush_stamp.h"
#include "shared/source/os_interface/os_time.h"
#include "shared/source/os_interface/performance_counters.h"
#include "shared/source/utilities/arrayref.h"
#include "shared/source/utilities/idlist.h"
#include "shared/source/utilities/iflist.h"
@@ -17,7 +18,6 @@
#include "opencl/source/event/hw_timestamps.h"
#include "opencl/source/helpers/base_object.h"
#include "opencl/source/helpers/task_information.h"
#include "opencl/source/os_interface/performance_counters.h"
#include <atomic>
#include <cstdint>

View File

@@ -9,8 +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}/performance_counters.cpp
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters.h
)
target_sources(${NEO_STATIC_LIB_NAME} PRIVATE ${RUNTIME_SRCS_OS_INTERFACE_BASE})

View File

@@ -11,8 +11,6 @@ set(RUNTIME_SRCS_OS_INTERFACE_LINUX
${CMAKE_CURRENT_SOURCE_DIR}/device_caps_init_linux.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ocl_reg_path.cpp
${CMAKE_CURRENT_SOURCE_DIR}/os_metrics_library.cpp
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_linux.cpp
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_linux.h
)
if(UNIX)

View File

@@ -13,8 +13,6 @@ set(RUNTIME_SRCS_OS_INTERFACE_WINDOWS
${CMAKE_CURRENT_SOURCE_DIR}/device_caps_init_win.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ocl_reg_path.cpp
${CMAKE_CURRENT_SOURCE_DIR}/os_metrics_library.cpp
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_win.cpp
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_win.h
)
if(WIN32)

View File

@@ -6,7 +6,8 @@
*/
#pragma once
#include "opencl/source/os_interface/linux/performance_counters_linux.h"
#include "shared/source/os_interface/linux/performance_counters_linux.h"
#include "opencl/test/unit_test/os_interface/mock_performance_counters.h"
namespace NEO {

View File

@@ -6,9 +6,9 @@
*/
#include "shared/source/os_interface/linux/drm_neo.h"
#include "shared/source/os_interface/linux/performance_counters_linux.h"
#include "shared/source/os_interface/os_interface.h"
#include "opencl/source/os_interface/linux/performance_counters_linux.h"
#include "opencl/test/unit_test/os_interface/mock_performance_counters.h"
#include "gtest/gtest.h"

View File

@@ -5,7 +5,8 @@
*
*/
#include "opencl/source/os_interface/performance_counters.h"
#include "shared/source/os_interface/performance_counters.h"
#include "test.h"
using namespace NEO;

View File

@@ -6,7 +6,8 @@
*/
#pragma once
#include "opencl/source/os_interface/windows/performance_counters_win.h"
#include "shared/source/os_interface/windows/performance_counters_win.h"
#include "opencl/test/unit_test/os_interface/mock_performance_counters.h"
namespace NEO {

View File

@@ -5,7 +5,8 @@
*
*/
#include "opencl/source/os_interface/windows/performance_counters_win.h"
#include "shared/source/os_interface/windows/performance_counters_win.h"
#include "opencl/test/unit_test/os_interface/mock_performance_counters.h"
#include "gtest/gtest.h"

View File

@@ -15,10 +15,9 @@
#include "shared/source/helpers/engine_control.h"
#include "shared/source/helpers/engine_node_helper.h"
#include "shared/source/helpers/hw_info.h"
#include "shared/source/os_interface/performance_counters.h"
#include "shared/source/program/sync_buffer_handler.h"
#include "opencl/source/os_interface/performance_counters.h"
#include "engine_group_types.h"
namespace NEO {

View File

@@ -36,6 +36,8 @@ set(NEO_CORE_OS_INTERFACE
${CMAKE_CURRENT_SOURCE_DIR}/os_thread.h
${CMAKE_CURRENT_SOURCE_DIR}/os_time.cpp
${CMAKE_CURRENT_SOURCE_DIR}/os_time.h
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters.cpp
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters.h
${CMAKE_CURRENT_SOURCE_DIR}/print.h
${CMAKE_CURRENT_SOURCE_DIR}/os_inc_base.h
${CMAKE_CURRENT_SOURCE_DIR}/sys_calls_common.h

View File

@@ -63,6 +63,8 @@ set(NEO_CORE_OS_INTERFACE_LINUX
${CMAKE_CURRENT_SOURCE_DIR}/os_thread_linux.h
${CMAKE_CURRENT_SOURCE_DIR}/os_time_linux.cpp
${CMAKE_CURRENT_SOURCE_DIR}/os_time_linux.h
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_linux.cpp
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_linux.h
${CMAKE_CURRENT_SOURCE_DIR}/pci_path.cpp
${CMAKE_CURRENT_SOURCE_DIR}/pci_path.h
${CMAKE_CURRENT_SOURCE_DIR}/page_table_manager_functions.cpp

View File

@@ -6,7 +6,7 @@
*/
#pragma once
#include "opencl/source/os_interface/performance_counters.h"
#include "shared/source/os_interface/performance_counters.h"
namespace NEO {

View File

@@ -5,7 +5,7 @@
*
*/
#include "opencl/source/os_interface/performance_counters.h"
#include "shared/source/os_interface/performance_counters.h"
#include "shared/source/helpers/engine_node_helper.h"
#include "shared/source/os_interface/os_context.h"

View File

@@ -31,6 +31,8 @@ set(NEO_CORE_OS_INTERFACE_WINDOWS
${CMAKE_CURRENT_SOURCE_DIR}/os_time_win.cpp
${CMAKE_CURRENT_SOURCE_DIR}/os_time_win.h
${CMAKE_CURRENT_SOURCE_DIR}/page_table_manager_functions.cpp
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_win.cpp
${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_win.h
${CMAKE_CURRENT_SOURCE_DIR}/print.cpp
${CMAKE_CURRENT_SOURCE_DIR}/trim_callback.cpp
${CMAKE_CURRENT_SOURCE_DIR}/wddm_device_command_stream.h

View File

@@ -6,7 +6,7 @@
*/
#pragma once
#include "opencl/source/os_interface/performance_counters.h"
#include "shared/source/os_interface/performance_counters.h"
namespace NEO {