mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 17:29:14 +08:00
Debug flag to control auto grf mode
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
596c9026f0
commit
5266a95c03
@@ -57,7 +57,7 @@ TokenizedString tokenize(ConstStringRef src, char sperator) {
|
||||
return ret;
|
||||
};
|
||||
|
||||
void applyAdditionalOptions(std::string &internalOptions) {
|
||||
void applyAdditionalInternalOptions(std::string &internalOptions) {
|
||||
size_t pos;
|
||||
if (DebugManager.flags.ForceLargeGrfCompilationMode.get()) {
|
||||
pos = internalOptions.find(CompilerOptions::largeGrf.data());
|
||||
@@ -76,5 +76,19 @@ void applyAdditionalOptions(std::string &internalOptions) {
|
||||
}
|
||||
}
|
||||
|
||||
void applyAdditionalApiOptions(std::string &apiOptions) {
|
||||
size_t pos;
|
||||
if (DebugManager.flags.ForceAutoGrfCompilationMode.get() == 1) {
|
||||
pos = apiOptions.find(CompilerOptions::autoGrf.data());
|
||||
if (pos == std::string::npos) {
|
||||
CompilerOptions::concatenateAppend(apiOptions, CompilerOptions::autoGrf);
|
||||
}
|
||||
pos = apiOptions.find(CompilerOptions::largeGrf.data());
|
||||
if (pos != std::string::npos) {
|
||||
apiOptions.erase(pos, CompilerOptions::largeGrf.size());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace CompilerOptions
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user