Add recompilation warning to debug messages

In case of recompilation from IR, apart from updating build log,
print debug message with recompilation warning.

Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
This commit is contained in:
Kacper Nowak 2022-11-09 12:31:40 +00:00 committed by Compute-Runtime-Automation
parent 57cea7365e
commit 481cf36ad1
1 changed files with 1 additions and 0 deletions

View File

@ -305,6 +305,7 @@ ze_result_t ModuleTranslationUnit::createFromNativeBinary(const char *input, siz
}
if (nullptr == this->unpackedDeviceBinary) {
PRINT_DEBUG_STRING(NEO::DebugManager.flags.PrintDebugMessages.get(), stderr, "%s\n", NEO::CompilerWarnings::recompiledFromIr.data());
if (!shouldSuppressRebuildWarning) {
updateBuildLog(NEO::CompilerWarnings::recompiledFromIr.str());
}