Skip to content

Commit 6aa9b36

Browse files
DebugVariables cleanup
- small cleanup - files renaming to match convention Change-Id: Iff9ed3a509001bcf6f154fc35f6d241ee9a968ae Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
1 parent ebe851e commit 6aa9b36

File tree

10 files changed

+14
-16
lines changed

10 files changed

+14
-16
lines changed

runtime/os_interface/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
set(RUNTIME_SRCS_OS_INTERFACE_BASE
88
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
99
${CMAKE_CURRENT_SOURCE_DIR}/32bit_memory.h
10-
${CMAKE_CURRENT_SOURCE_DIR}/DebugVariables_base.inl
11-
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}/DebugVariables.inl
10+
${CMAKE_CURRENT_SOURCE_DIR}/debug_variables_base.inl
11+
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}/debug_variables.inl
1212
${CMAKE_CURRENT_SOURCE_DIR}/debug_settings_manager.cpp
1313
${CMAKE_CURRENT_SOURCE_DIR}/debug_settings_manager.h
1414
${CMAKE_CURRENT_SOURCE_DIR}/device_factory.cpp

runtime/os_interface/debug_settings_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ DebugSettingsManager<DebugLevel>::DebugSettingsManager() {
3737
dataType tempData = readerImpl->getSetting(#variableName, flags.variableName.get()); \
3838
flags.variableName.set(tempData); \
3939
}
40-
#include "DebugVariables.inl"
40+
#include "debug_variables.inl"
4141
}
4242

4343
std::remove(logFileName.c_str());

runtime/os_interface/debug_settings_manager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private:
6262
dataType value; \
6363
};
6464

65-
#include "DebugVariables.inl"
65+
#include "debug_variables.inl"
6666
#undef DECLARE_DEBUG_VARIABLE
6767
// clang-format on
6868

@@ -72,7 +72,7 @@ class DebugSettingsManager {
7272
struct DebugVariables {
7373
#define DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description) \
7474
DebugVar##variableName variableName;
75-
#include "DebugVariables.inl"
75+
#include "debug_variables.inl"
7676
#undef DECLARE_DEBUG_VARIABLE
7777
};
7878

runtime/os_interface/DebugVariables_base.inl renamed to runtime/os_interface/debug_variables_base.inl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*
66
*/
77

8-
// clang-format off
98
/*SIMULATION FLAGS*/
109
DECLARE_DEBUG_VARIABLE(std::string, TbxServer, std::string("127.0.0.1"), "TCP-IP address of TBX server")
1110
DECLARE_DEBUG_VARIABLE(std::string, ProductFamilyOverride, std::string("unk"), "Specify product for use in AUB/TBX")
@@ -100,11 +99,10 @@ DECLARE_DEBUG_VARIABLE(int32_t, OverrideDefaultFP64Settings, -1, "-1: dont overr
10099

101100
/*DRIVER TOGGLES*/
102101
DECLARE_DEBUG_VARIABLE(int32_t, ForceOCLVersion, 0, "Force specific OpenCL API version")
103-
DECLARE_DEBUG_VARIABLE(int32_t, ForcePreemptionMode, -1, "Keep this variable in sync with PreemptionMode enum. -1 - devices default mode, 1 - disable, 2 - midBatch, 3 " "- threadGroup, 4 - midThread")
102+
DECLARE_DEBUG_VARIABLE(int32_t, ForcePreemptionMode, -1, "Keep this variable in sync with PreemptionMode enum. -1 - devices default mode, 1 - disable, 2 - midBatch, 3 - threadGroup, 4 - midThread")
104103
DECLARE_DEBUG_VARIABLE(int32_t, NodeOrdinal, -1, "-1: default do not override, 0: ENGINE_RCS")
105104
DECLARE_DEBUG_VARIABLE(int32_t, OverrideThreadArbitrationPolicy, -1, "-1 (dont override) or any valid config (0: Age Based, 1: Round Robin)")
106105
DECLARE_DEBUG_VARIABLE(int32_t, OverrideAubDeviceId, -1, "-1 dont override, any other: use this value for AUB generation device id")
107-
DECLARE_DEBUG_VARIABLE(bool, UseMaxSimdSizeToDeduceMaxWorkgroupSize, false, "With this flag on, max workgroup size is deduced using SIMD32 instead of SIMD8, this causes the max wkg size " "to be 4 times bigger")
106+
DECLARE_DEBUG_VARIABLE(bool, UseMaxSimdSizeToDeduceMaxWorkgroupSize, false, "With this flag on, max workgroup size is deduced using SIMD32 instead of SIMD8, this causes the max wkg size to be 4 times bigger")
108107
DECLARE_DEBUG_VARIABLE(int32_t, EnableTimestampPacket, -1, "-1: default, 0: disable, 1:enable. Write Timestamp Packet for each set of gpu walkers")
109108
DECLARE_DEBUG_VARIABLE(bool, ReturnRawGpuTimestamps, false, "Driver returns raw GPU tiemstamps instead of calculated ones.")
110-
// clang-format on

runtime/os_interface/definitions/DebugVariables.inl renamed to runtime/os_interface/definitions/debug_variables.inl

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

8-
#include "runtime/os_interface/DebugVariables_base.inl"
8+
#include "runtime/os_interface/debug_variables_base.inl"

unit_tests/helpers/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ set(IGDRCL_SRCS_tests_helpers
3939
${CMAKE_CURRENT_SOURCE_DIR}/string_to_hash_tests.cpp
4040
${CMAKE_CURRENT_SOURCE_DIR}/string_tests.cpp
4141
${CMAKE_CURRENT_SOURCE_DIR}/task_information_tests.cpp
42-
${CMAKE_CURRENT_SOURCE_DIR}/TestDebugVariables.inl
42+
${CMAKE_CURRENT_SOURCE_DIR}/test_debug_variables.inl
4343
${CMAKE_CURRENT_SOURCE_DIR}/timestamp_packet_tests.cpp
4444
${CMAKE_CURRENT_SOURCE_DIR}/uint16_sse4_tests.cpp
4545
${CMAKE_CURRENT_SOURCE_DIR}/unit_test_helper.h
File renamed without changes.

unit_tests/os_interface/debug_settings_manager_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ TEST(DebugSettingsManager, WithoutDebugFunctionality) {
719719
bool isEqual = TestDebugFlagsChecker::isEqual(debugManager.flags.variableName.get(), defaultValue); \
720720
EXPECT_TRUE(isEqual); \
721721
}
722-
#include "DebugVariables.inl"
722+
#include "debug_variables.inl"
723723
#undef DECLARE_DEBUG_VARIABLE
724724

725725
// test kernel dumping

unit_tests/utilities/debug_file_reader_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ TEST(SettingsFileReader, givenTestFileWithDefaultValuesWhenTheyAreQueriedThenDef
2424
compareSuccessful = (defaultValue == reader->getSetting(#variableName, defaultValue)); \
2525
EXPECT_TRUE(compareSuccessful) << #variableName; \
2626
debugVariableCount++;
27-
#include "DebugVariables.inl"
27+
#include "debug_variables.inl"
2828
#undef DECLARE_DEBUG_VARIABLE
2929

3030
size_t mapCount = reader->getValueSettingsCount() + reader->getStringSettingsCount();
@@ -47,6 +47,6 @@ TEST(SettingsFileReader, GetSetting) {
4747
EXPECT_TRUE(true); \
4848
} \
4949
}
50-
#include "DebugVariables.inl"
50+
#include "debug_variables.inl"
5151
#undef DECLARE_DEBUG_VARIABLE
5252
}

unit_tests/utilities/debug_file_reader_tests.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ TEST(SettingsFileReader, GetStringSettingFromFile) {
6262
ASSERT_NE(nullptr, reader);
6363

6464
string retValue;
65-
// StringTestKey is defined in file: unit_tests\helpers\TestDebugVariables.inl
65+
// StringTestKey is defined in file: unit_tests\helpers\test_debug_variables.inl
6666
string returnedStringValue = reader->getSetting("StringTestKey", retValue);
6767

6868
// "Test Value" is a value that should be read from file defined in stringTestPath member
@@ -76,7 +76,7 @@ TEST(SettingsFileReader, GetStringSettingFromFile) {
7676
EXPECT_TRUE(true); \
7777
} \
7878
}
79-
#include "unit_tests/helpers/TestDebugVariables.inl"
79+
#include "unit_tests/helpers/test_debug_variables.inl"
8080
#undef DECLARE_DEBUG_VARIABLE
8181
}
8282

0 commit comments

Comments
 (0)