mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
Move performance counters to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6f0baaeab9
commit
69390c7eca
@@ -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>
|
||||
|
||||
@@ -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})
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "opencl/source/os_interface/performance_counters.h"
|
||||
#include "shared/source/os_interface/performance_counters.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
@@ -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"
|
||||
@@ -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
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "opencl/source/os_interface/performance_counters.h"
|
||||
#include "shared/source/os_interface/performance_counters.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
Reference in New Issue
Block a user