mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Allow override of default platform Hardware Info Config
New string debug variable HardwareInfoOverride is used to specify new Hardware Info Config to be selected, for example 1x4x8. Change-Id: I6d939608e6551e4a9102e5ab2e08255ee4982933
This commit is contained in:
@@ -59,6 +59,17 @@ DebugSettingsManager<DebugLevel>::~DebugSettingsManager() {
|
||||
}
|
||||
}
|
||||
|
||||
template <DebugFunctionalityLevel DebugLevel>
|
||||
void DebugSettingsManager<DebugLevel>::getHardwareInfoOverride(std::string &hwInfoConfig) {
|
||||
std::string str = flags.HardwareInfoOverride.get();
|
||||
if (str[0] == '\"') {
|
||||
str.pop_back();
|
||||
hwInfoConfig = str.substr(1, std::string::npos);
|
||||
} else {
|
||||
hwInfoConfig = str;
|
||||
}
|
||||
}
|
||||
|
||||
template <DebugFunctionalityLevel DebugLevel>
|
||||
void DebugSettingsManager<DebugLevel>::dumpKernel(const std::string &name, const std::string &src) {
|
||||
if (false == debugKernelDumpingAvailable()) {
|
||||
|
||||
Reference in New Issue
Block a user