Report errors if any tuned kernels fail to generate or compile
@@ -532,9 +532,14 @@ def writeSolutionsAndKernels(outputPath, CxxCompiler, problemTypes, solutions, k
for kernIdx, res in Utils.tqdm(enumerate(results)):
(err,src,header,kernelName, filename) = res
if(err == -2):
+ if not errorTolerant:
+ print("\nKernel generation failed for kernel: {}".format(kernels[kernIdx]["SolutionIndex"]))
+ print(kernels[kernIdx]["SolutionNameMin"])
removeKernels.append(kernels[kernIdx])
removeSolutions.append(solutions[kernIdx])
removeResults.append(results[kernIdx])
+ if len(removeKernels) > 0 and not errorTolerant:
+ printExit("** kernel generation failure **")
for kern in removeKernels:
kernels.remove(kern)
for solut in removeSolutions:
@@ -551,8 +556,7 @@ def writeSolutionsAndKernels(outputPath, CxxCompiler, problemTypes, solutions, k
kernelName = writer.getKernelName(kernel)
return kernelName not in kernelsWithBuildErrs
kernelsToBuild = list(filter(success, kernelsToBuild))
-
- if False:#len(kernelsWithBuildErrs) > 0:
+ elif len(kernelsWithBuildErrs) > 0:
print("\nKernel compilation failed in one or more subprocesses. May want to set CpuThreads=0 and re-run to make debug easier")
printExit("** kernel compilation failure **")
