mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
feature: Add debug/release variable prefixes
Resolves: NEO-6357 Signed-off-by: John Falkowski <john.falkowski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6fca8ee195
commit
ec95d9314a
@@ -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,20 @@ uint64_t ApiSpecificConfig::getReducedMaxAllocSize(uint64_t maxAllocSize) {
|
||||
const char *ApiSpecificConfig::getRegistryPath() {
|
||||
return oclRegPath;
|
||||
}
|
||||
void ApiSpecificConfig::initPrefixes() {
|
||||
validClPrefixes.push_back("NEO_OCL_");
|
||||
validClPrefixes.push_back("NEO_");
|
||||
validClPrefixes.push_back("");
|
||||
validClPrefixTypes.push_back(DebugVarPrefix::Neo_Ocl);
|
||||
validClPrefixTypes.push_back(DebugVarPrefix::Neo);
|
||||
validClPrefixTypes.push_back(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