Files
compute-runtime/shared/offline_compiler/source/offline_compiler_helper.cpp
Chodor, Jaroslaw eb58e1f964 feature: Allow NEOReadDebugKeys and PrintDebugMessages envs in ocloc
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>
2025-04-16 18:17:15 +02:00

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