feature: Add debug/release variables prefixes

Add debug/release variables with prefixes for Level Zero, OpenCL and NEO

Resolves: NEO-6357

Signed-off-by: John Falkowski <john.falkowski@intel.com>
This commit is contained in:
John Falkowski
2023-08-20 04:31:48 +00:00
committed by Compute-Runtime-Automation
parent 3d33366ff6
commit d49190f4ae
23 changed files with 1289 additions and 59 deletions

View File

@@ -10,7 +10,12 @@
#include "opencl/source/os_interface/ocl_reg_path.h"
#include <string>
#include <vector>
namespace NEO {
std::vector<const char *> validClPrefixes;
std::vector<NEO::DebugVarPrefix> validClPrefixTypes;
bool ApiSpecificConfig::isStatelessCompressionSupported() {
return true;
}
@@ -50,4 +55,17 @@ uint64_t ApiSpecificConfig::getReducedMaxAllocSize(uint64_t maxAllocSize) {
const char *ApiSpecificConfig::getRegistryPath() {
return oclRegPath;
}
void ApiSpecificConfig::initPrefixes() {
validClPrefixes = {"NEO_OCL_", "NEO_", ""};
validClPrefixTypes = {DebugVarPrefix::Neo_Ocl, DebugVarPrefix::Neo, DebugVarPrefix::None};
}
const std::vector<const char *> &ApiSpecificConfig::getPrefixStrings() {
return validClPrefixes;
}
const std::vector<DebugVarPrefix> &ApiSpecificConfig::getPrefixTypes() {
return validClPrefixTypes;
}
} // namespace NEO