diff --git a/PerfectNumbers.Core/ULongExtensions.Gpu.cs b/PerfectNumbers.Core/ULongExtensions.Gpu.cs index c391b99..895b919 100644 --- a/PerfectNumbers.Core/ULongExtensions.Gpu.cs +++ b/PerfectNumbers.Core/ULongExtensions.Gpu.cs @@ -115,6 +115,15 @@ public static partial class ULongExtensions exponentBuffer.Dispose(); execution.Dispose(); lease.Dispose(); + // Keep this commented. We don't want to catch any exceptions. All should crash the scanner. + // catch (AcceleratorException) + // { + // return false; + // } + // catch (NotSupportedException) + // { + // return false; + // } // Intentionally avoid exception handling here; any accelerator failure should crash the scanner. return true; }