mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
Rename DebugVariables.def to DebugVariables.inl
Append this file to project source tree Change-Id: I1d1f8538f6d28abd053a3106f9ffe4b955530416
This commit is contained in:
committed by
sys_ocldev
parent
8ace8f8256
commit
cb37fb97a3
@@ -21,6 +21,7 @@
|
||||
set(RUNTIME_SRCS_OS_INTERFACE_BASE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/32bit_memory.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/DebugVariables.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/debug_settings_manager.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/debug_settings_manager.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/device_factory.h
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017-2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -51,7 +51,7 @@ DebugSettingsManager<DebugLevel>::DebugSettingsManager() {
|
||||
dataType tempData = readerImpl->getSetting(#variableName, flags.variableName.get()); \
|
||||
flags.variableName.set(tempData); \
|
||||
}
|
||||
#include "DebugVariables.def"
|
||||
#include "DebugVariables.inl"
|
||||
}
|
||||
|
||||
std::remove(logFileName.c_str());
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017-2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -77,7 +77,7 @@ private:
|
||||
dataType value; \
|
||||
};
|
||||
|
||||
#include "DebugVariables.def"
|
||||
#include "DebugVariables.inl"
|
||||
#undef DECLARE_DEBUG_VARIABLE
|
||||
// clang-format on
|
||||
|
||||
@@ -87,7 +87,7 @@ class DebugSettingsManager {
|
||||
struct DebugVariables {
|
||||
#define DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description) \
|
||||
DebugVar##variableName variableName;
|
||||
#include "DebugVariables.def"
|
||||
#include "DebugVariables.inl"
|
||||
#undef DECLARE_DEBUG_VARIABLE
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017-2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -697,7 +697,7 @@ TEST(DebugSettingsManager, WithoutDebugFunctionality) {
|
||||
bool isEqual = TestDebugFlagsChecker::isEqual(debugManager.flags.variableName.get(), defaultValue); \
|
||||
EXPECT_TRUE(isEqual); \
|
||||
}
|
||||
#include "runtime/os_interface/DebugVariables.def"
|
||||
#include "runtime/os_interface/DebugVariables.inl"
|
||||
#undef DECLARE_DEBUG_VARIABLE
|
||||
|
||||
// test kernel dumping
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017-2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -80,7 +80,7 @@ TEST(SettingsFileReader, CreateFileReaderWithSettingsFile) {
|
||||
size_t debugVariableCount = 0;
|
||||
#define DECLARE_DEBUG_VARIABLE(dataType, variableName, defaultValue, description) \
|
||||
debugVariableCount++;
|
||||
#include "runtime/os_interface/DebugVariables.def"
|
||||
#include "runtime/os_interface/DebugVariables.inl"
|
||||
#undef DECLARE_DEBUG_VARIABLE
|
||||
|
||||
size_t mapCount = reader->getValueSettingsCount() + reader->getStringSettingsCount();
|
||||
@@ -101,7 +101,7 @@ TEST(SettingsFileReader, GetSetting) {
|
||||
EXPECT_TRUE(true); \
|
||||
} \
|
||||
}
|
||||
#include "runtime/os_interface/DebugVariables.def"
|
||||
#include "runtime/os_interface/DebugVariables.inl"
|
||||
#undef DECLARE_DEBUG_VARIABLE
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user