feature(zebin): dump zebin when building module from SPIRV

- Debug key DumpZEBin should dump zebin elf for modules created from
SPIRV format

Related-To: NEO-7895

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2023-07-28 18:21:31 +00:00
committed by Compute-Runtime-Automation
parent 820771212c
commit 30426d35c8
2 changed files with 52 additions and 0 deletions

View File

@@ -370,6 +370,10 @@ ze_result_t ModuleTranslationUnit::processUnpackedBinary() {
return ZE_RESULT_ERROR_MODULE_BUILD_FAILURE;
}
if (singleDeviceBinaryFormat == NEO::DeviceBinaryFormat::Zebin && NEO::DebugManager.flags.DumpZEBin.get() == 1) {
dumpFileIncrement(reinterpret_cast<const char *>(blob.begin()), blob.size(), "dumped_zebin_module", ".elf");
}
processDebugData();
size_t slmNeeded = NEO::getMaxInlineSlmNeeded(programInfo);