mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
fix: Better IR file format ext handling
This fix makes ocloc honor IR file format when picking extension for the output file. Additionally, this commit removes reduntant IR output when compiling from IR. Related-To: NEO-15876 Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
84f7b538df
commit
d8ef0aa99d
@@ -1769,7 +1769,7 @@ void OfflineCompiler::writeOutAllFiles() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (irBinary && (this->inputCodeType != IGC::CodeType::spirV)) {
|
||||
if (irBinary && (this->inputCodeType == IGC::CodeType::oclC)) {
|
||||
std::string irOutputFileName = generateFilePathForIr(fileBase) + generateOptsSuffix();
|
||||
|
||||
argHelper->saveOutput(irOutputFileName, irBinary, irBinarySize);
|
||||
|
||||
Reference in New Issue
Block a user