mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
ocloc: dump files even if the entire build failed
if compilation spirv -> binary fails then spv file is created cleanup MockOfflineCompiler Change-Id: I6352baaa11a8f4ca15dcb358b4f2fbcae1b89d24 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
39b61b5928
commit
cb24b95833
@@ -50,7 +50,7 @@ class OfflineCompiler {
|
||||
|
||||
OfflineCompiler &operator=(const OfflineCompiler &) = delete;
|
||||
OfflineCompiler(const OfflineCompiler &) = delete;
|
||||
~OfflineCompiler();
|
||||
MOCKABLE_VIRTUAL ~OfflineCompiler();
|
||||
|
||||
bool isQuiet() const {
|
||||
return quiet;
|
||||
@@ -80,9 +80,9 @@ class OfflineCompiler {
|
||||
void resolveExtraSettings();
|
||||
void parseDebugSettings();
|
||||
void storeBinary(char *&pDst, size_t &dstSize, const void *pSrc, const size_t srcSize);
|
||||
int buildSourceCode();
|
||||
MOCKABLE_VIRTUAL int buildSourceCode();
|
||||
void updateBuildLog(const char *pErrorString, const size_t errorStringSize);
|
||||
bool generateElfBinary();
|
||||
MOCKABLE_VIRTUAL bool generateElfBinary();
|
||||
std::string generateFilePathForIr(const std::string &fileNameBase) {
|
||||
const char *ext = (isSpirV) ? ".spv" : ".bc";
|
||||
return generateFilePath(outputDirectory, fileNameBase, useLlvmText ? ".ll" : ext);
|
||||
@@ -93,7 +93,7 @@ class OfflineCompiler {
|
||||
std::replace(suffix.begin(), suffix.end(), ' ', '_');
|
||||
return suffix;
|
||||
}
|
||||
void writeOutAllFiles();
|
||||
MOCKABLE_VIRTUAL void writeOutAllFiles();
|
||||
const HardwareInfo *hwInfo = nullptr;
|
||||
|
||||
std::string deviceName;
|
||||
|
||||
Reference in New Issue
Block a user