From f1109330dfb1256440f3552a9243a79f9c748880 Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Mon, 8 Dec 2025 02:51:04 +0100 Subject: [PATCH] Default no. of accelerators increased back to 298 (max without exceptions). State saving interval decreased to limit unnecessary overhead. --- PerfectNumbers.Core/PerfectNumberConstants.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PerfectNumbers.Core/PerfectNumberConstants.cs b/PerfectNumbers.Core/PerfectNumberConstants.cs index 26e1c2b..c01781d 100644 --- a/PerfectNumbers.Core/PerfectNumberConstants.cs +++ b/PerfectNumbers.Core/PerfectNumberConstants.cs @@ -16,9 +16,9 @@ public static class PerfectNumberConstants public const int MaxOddPowersCount = 128; public const int PooledArrayThreshold = 64; public const int Pow2WindowSize = 8; - public static int RollingAccelerators = 160; //SharedGpuContext.Device.MaxNumThreadsPerGroup; + public static int RollingAccelerators = 298; //SharedGpuContext.Device.MaxNumThreadsPerGroup; public const int ThreadsByAccelerator = 1; - public const int ByDivisorStateSaveInterval = 1_000_000; + public const int ByDivisorStateSaveInterval = 300_000; public const string ByDivisorStateDirectory = "Checks"; // TODO: Load these limits from the benchmark-driven configuration so CPU and GPU scans stay aligned with the optimal // divisor-cycle datasets we generate offline.