mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 07:44:16 +08:00
This enables NEO's NEOReadDebugKeys and PrintDebugMessages in ocloc in the same scenarios as in NEO OCL/L0 RT Note : * NEOReadDebugKeys=1 should not be prefixed with NEO_OCLOC_ * PrintDebugMessages=1 should be prefixed with NEO_OCLOC_ (to distinguish from OCL/L0 RT usage), so the full env is NEO_OCLOC_PrintDebugMessages=1 Related-To: NEO-14473 Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
37 lines
1.0 KiB
C++
37 lines
1.0 KiB
C++
/*
|
|
* Copyright (C) 2019-2025 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/offline_compiler/source/ocloc_reg_path.h"
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
#include "shared/source/helpers/api_specific_config.h"
|
|
#include "shared/source/utilities/debug_settings_reader_creator.h"
|
|
#include "shared/source/utilities/stackvec.h"
|
|
|
|
namespace NEO {
|
|
|
|
StackVec<const char *, 4> validOclocPrefixes;
|
|
StackVec<NEO::DebugVarPrefix, 4> validOclocPrefixTypes;
|
|
|
|
void translateDebugSettings(DebugVariables &debugVariables) {
|
|
}
|
|
|
|
void ApiSpecificConfig::initPrefixes() {
|
|
validOclocPrefixes = {"NEO_OCLOC_"};
|
|
validOclocPrefixTypes = {DebugVarPrefix::neoOcloc};
|
|
}
|
|
|
|
const StackVec<const char *, 4> &ApiSpecificConfig::getPrefixStrings() {
|
|
return validOclocPrefixes;
|
|
}
|
|
|
|
const StackVec<DebugVarPrefix, 4> &ApiSpecificConfig::getPrefixTypes() {
|
|
return validOclocPrefixTypes;
|
|
}
|
|
|
|
DebugSettingsManager<globalDebugFunctionalityLevel> debugManager(Ocloc::oclocRegPath);
|
|
} // namespace NEO
|