From 37ab77e5db37f11b09970cb03974573239ea735d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Lema=C5=84czyk?= Date: Sun, 19 Oct 2025 06:10:54 +0200 Subject: [PATCH] Restore GPU executor commented catch guidance --- PerfectNumbers.Core/ULongExtensions.Gpu.cs | 9 +++++++++ 1 file changed, 9 insertions(+) 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; }