feature: Introduce split for release variables

Related-To: NEO-12952

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
Slawomir Milczarek
2025-07-25 11:59:44 +00:00
committed by Compute-Runtime-Automation
parent 3f241b9fc5
commit 8c376fe2f9
8 changed files with 17 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
# #
# Copyright (C) 2019-2021 Intel Corporation # Copyright (C) 2019-2025 Intel Corporation
# #
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
# #
@@ -10,8 +10,9 @@ set(NEO_CORE_DEBUG_SETTINGS
${CMAKE_CURRENT_SOURCE_DIR}/debug_settings_manager.cpp ${CMAKE_CURRENT_SOURCE_DIR}/debug_settings_manager.cpp
${CMAKE_CURRENT_SOURCE_DIR}/debug_variables_base.inl ${CMAKE_CURRENT_SOURCE_DIR}/debug_variables_base.inl
${CMAKE_CURRENT_SOURCE_DIR}/debug_variables_helper.h ${CMAKE_CURRENT_SOURCE_DIR}/debug_variables_helper.h
${CMAKE_CURRENT_SOURCE_DIR}/release_variables.inl ${CMAKE_CURRENT_SOURCE_DIR}/release_variables_base.inl
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}debug_variables.inl ${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}debug_variables.inl
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}release_variables.inl
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}translate_debug_settings.cpp ${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}translate_debug_settings.cpp
${CMAKE_CURRENT_SOURCE_DIR}/definitions/translate_debug_settings.h ${CMAKE_CURRENT_SOURCE_DIR}/definitions/translate_debug_settings.h
) )

View File

@@ -0,0 +1,8 @@
/*
* Copyright (C) 2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/debug_settings/release_variables_base.inl"

View File

@@ -51,9 +51,8 @@ void BaseUltConfigListener::OnTestEnd(const ::testing::TestInfo &) {
EXPECT_EQ(debugVarSnapshot.variableName.getRef(), debugManager.flags.variableName.getRef()); EXPECT_EQ(debugVarSnapshot.variableName.getRef(), debugManager.flags.variableName.getRef());
#define DECLARE_DEBUG_SCOPED_V(dataType, variableName, defaultValue, description, ...) \ #define DECLARE_DEBUG_SCOPED_V(dataType, variableName, defaultValue, description, ...) \
DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description) DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description)
#include "shared/source/debug_settings/release_variables.inl"
#include "debug_variables.inl" #include "debug_variables.inl"
#include "release_variables.inl"
#undef DECLARE_DEBUG_SCOPED_V #undef DECLARE_DEBUG_SCOPED_V
#undef DECLARE_DEBUG_VARIABLE #undef DECLARE_DEBUG_VARIABLE

View File

@@ -23,9 +23,8 @@ class DebugManagerStateRestore {
#define DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description) shrink(debugManager.flags.variableName.getRef()); #define DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description) shrink(debugManager.flags.variableName.getRef());
#define DECLARE_DEBUG_SCOPED_V(dataType, variableName, defaultValue, description, ...) \ #define DECLARE_DEBUG_SCOPED_V(dataType, variableName, defaultValue, description, ...) \
DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description) DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description)
#include "shared/source/debug_settings/release_variables.inl"
#include "debug_variables.inl" #include "debug_variables.inl"
#include "release_variables.inl"
#undef DECLARE_DEBUG_SCOPED_V #undef DECLARE_DEBUG_SCOPED_V
#undef DECLARE_DEBUG_VARIABLE #undef DECLARE_DEBUG_VARIABLE
} }

View File

@@ -61,9 +61,8 @@ TEST(DebugSettingsManager, WhenDebugManagerIsDisabledThenDebugFunctionalityIsNot
} }
#define DECLARE_DEBUG_SCOPED_V(dataType, variableName, defaultValue, description, ...) \ #define DECLARE_DEBUG_SCOPED_V(dataType, variableName, defaultValue, description, ...) \
DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description) DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description)
#include "shared/source/debug_settings/release_variables.inl"
#include "debug_variables.inl" #include "debug_variables.inl"
#include "release_variables.inl"
#undef DECLARE_DEBUG_SCOPED_V #undef DECLARE_DEBUG_SCOPED_V
#undef DECLARE_DEBUG_VARIABLE #undef DECLARE_DEBUG_VARIABLE
} }

View File

@@ -365,9 +365,8 @@ TEST(ExecutionEnvironment, givenNeoCalEnabledWhenCreateExecutionEnvironmentThenS
EXPECT_EQ(defaultValue, debugManager.flags.variableName.getRef()); EXPECT_EQ(defaultValue, debugManager.flags.variableName.getRef());
#define DECLARE_DEBUG_SCOPED_V(dataType, variableName, defaultValue, description, ...) \ #define DECLARE_DEBUG_SCOPED_V(dataType, variableName, defaultValue, description, ...) \
DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description) DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description)
#include "shared/source/debug_settings/release_variables.inl"
#include "debug_variables.inl" #include "debug_variables.inl"
#include "release_variables.inl"
#undef DECLARE_DEBUG_SCOPED_V #undef DECLARE_DEBUG_SCOPED_V
#undef DECLARE_DEBUG_VARIABLE #undef DECLARE_DEBUG_VARIABLE
@@ -400,9 +399,8 @@ TEST(ExecutionEnvironment, givenNeoCalEnabledWhenCreateExecutionEnvironmentThenS
#define DECLARE_DEBUG_SCOPED_V(dataType, variableName, defaultValue, description, ...) \ #define DECLARE_DEBUG_SCOPED_V(dataType, variableName, defaultValue, description, ...) \
DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description) DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description)
#include "shared/source/debug_settings/release_variables.inl"
#include "debug_variables.inl" #include "debug_variables.inl"
#include "release_variables.inl"
#undef DECLARE_DEBUG_SCOPED_V #undef DECLARE_DEBUG_SCOPED_V
#undef DECLARE_DEBUG_VARIABLE #undef DECLARE_DEBUG_VARIABLE
} }

View File

@@ -28,9 +28,8 @@ TEST(SettingsFileReader, givenTestFileWithDefaultValuesWhenTheyAreQueriedThenDef
debugVariableCount++; debugVariableCount++;
#define DECLARE_DEBUG_SCOPED_V(dataType, variableName, defaultValue, description, ...) \ #define DECLARE_DEBUG_SCOPED_V(dataType, variableName, defaultValue, description, ...) \
DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description) DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description)
#include "shared/source/debug_settings/release_variables.inl"
#include "debug_variables.inl" #include "debug_variables.inl"
#include "release_variables.inl"
#undef DECLARE_DEBUG_SCOPED_V #undef DECLARE_DEBUG_SCOPED_V
#undef DECLARE_DEBUG_VARIABLE #undef DECLARE_DEBUG_VARIABLE