mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 17:29:14 +08:00
L0: GRF mode debug flags support
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3e01915e61
commit
b2001bf265
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "shared/source/compiler_interface/compiler_options.h"
|
||||
|
||||
#include "shared/source/debug_settings/debug_settings_manager.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
namespace NEO {
|
||||
@@ -50,5 +52,24 @@ TokenizedString tokenize(ConstStringRef src, char sperator) {
|
||||
return ret;
|
||||
};
|
||||
|
||||
void applyAdditionalOptions(std::string &internalOptions) {
|
||||
size_t pos;
|
||||
if (DebugManager.flags.ForceLargeGrfCompilationMode.get()) {
|
||||
pos = internalOptions.find(CompilerOptions::largeGrf.data());
|
||||
if (pos == std::string::npos) {
|
||||
CompilerOptions::concatenateAppend(internalOptions, CompilerOptions::largeGrf);
|
||||
}
|
||||
} else if (DebugManager.flags.ForceDefaultGrfCompilationMode.get()) {
|
||||
pos = internalOptions.find(CompilerOptions::defaultGrf.data());
|
||||
if (pos == std::string::npos) {
|
||||
CompilerOptions::concatenateAppend(internalOptions, CompilerOptions::defaultGrf.data());
|
||||
}
|
||||
pos = internalOptions.find(CompilerOptions::largeGrf.data());
|
||||
if (pos != std::string::npos) {
|
||||
internalOptions.erase(pos, CompilerOptions::largeGrf.size());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace CompilerOptions
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user