mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/helpers/hw_info.h"
|
|
#include "runtime/os_interface/debug_settings_manager.h"
|
|
#include "runtime/utilities/debug_settings_reader_creator.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <DebugFunctionalityLevel DebugLevel>
|
|
DebugSettingsManager<DebugLevel>::DebugSettingsManager() {
|
|
}
|
|
|
|
template <DebugFunctionalityLevel DebugLevel>
|
|
DebugSettingsManager<DebugLevel>::~DebugSettingsManager() = default;
|
|
|
|
template <DebugFunctionalityLevel DebugLevel>
|
|
void DebugSettingsManager<DebugLevel>::writeToFile(std::string filename, const char *str, size_t length, std::ios_base::openmode mode) {
|
|
std::ofstream outFile(filename, mode);
|
|
if (outFile.is_open()) {
|
|
outFile.write(str, length);
|
|
outFile.close();
|
|
}
|
|
}
|
|
|
|
// Global Debug Settings Manager
|
|
DebugSettingsManager<globalDebugFunctionalityLevel> DebugManager;
|
|
|
|
// Global table of hardware prefixes
|
|
const char *hardwarePrefix[IGFX_MAX_PRODUCT] = {
|
|
nullptr,
|
|
};
|
|
|
|
// Global table of family names
|
|
const char *familyName[IGFX_MAX_CORE] = {
|
|
nullptr,
|
|
};
|
|
|
|
// Global table of family names
|
|
bool familyEnabled[IGFX_MAX_CORE] = {
|
|
false,
|
|
};
|
|
|
|
} // namespace NEO
|