mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Improve error handling in offline linker
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
429755e0f4
commit
59a4017cb6
@@ -413,6 +413,13 @@ void translate(bool usingIgc, CIF::Builtins::BufferSimple *src, CIF::Builtins::B
|
||||
}
|
||||
}
|
||||
|
||||
if (debugVars.forceSuccessWithEmptyOutput) {
|
||||
if (out) {
|
||||
out->setOutput(nullptr, 0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if ((debugVars.forceBuildFailure == false) &&
|
||||
(out && src && src->GetMemoryRaw() && src->GetSizeRaw())) {
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ struct MockCompilerDebugVars {
|
||||
bool shouldReturnInvalidTranslationOutput = false;
|
||||
bool shouldFailCreationOfTranslationContext = false;
|
||||
bool forceBuildFailure = false;
|
||||
bool forceSuccessWithEmptyOutput = false;
|
||||
bool forceCreateFailure = false;
|
||||
bool forceRegisterFail = false;
|
||||
bool internalOptionsExpected = false;
|
||||
|
||||
Reference in New Issue
Block a user