mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
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:
committed by
Compute-Runtime-Automation
parent
3d33366ff6
commit
d49190f4ae
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user