We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f922573 commit 69c5c8fCopy full SHA for 69c5c8f
IGC/AdaptorOCL/dllInterfaceCompute.cpp
@@ -1179,6 +1179,7 @@ bool TranslateBuildSPMD(
1179
llvm::Module* pKernelModule = nullptr;
1180
LLVMContextWrapper* llvmContext = new LLVMContextWrapper;
1181
RegisterComputeErrHandlers(*llvmContext);
1182
+ RegisterErrHandlers();
1183
1184
if (IGC_IS_FLAG_ENABLED(ShaderDumpEnable))
1185
{
IGC/common/debug/Debug.cpp
@@ -253,6 +253,9 @@ namespace {
253
exit(1);
254
}
255
#endif
256
+ // Throw exception to return control to an application,
257
+ // it can try to gracefully process the error
258
+ throw std::runtime_error("LLVM Error: " + reasonStrWrapper);
259
260
261
void ComputeFatalErrorHandler(const DiagnosticInfo &DI, void * /*Context*/) {
0 commit comments