From b58e2be2b0f93d42e8d014765b7767249b819f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Lema=C5=84czyk?= Date: Thu, 25 Sep 2025 03:32:07 +0200 Subject: [PATCH] GPU steps adjusted to prevent overloading it --- PerfectNumbers.Core/DivisorCycleCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PerfectNumbers.Core/DivisorCycleCache.cs b/PerfectNumbers.Core/DivisorCycleCache.cs index c7378fa..460db80 100644 --- a/PerfectNumbers.Core/DivisorCycleCache.cs +++ b/PerfectNumbers.Core/DivisorCycleCache.cs @@ -69,7 +69,7 @@ public sealed class DivisorCycleCache } private const int CycleGenerationBatchSize = 262_144; - private const int GpuCycleStepsPerInvocation = 524_288; + private const int GpuCycleStepsPerInvocation = 524_288 / 16; private const byte ByteZero = 0; private const byte ByteOne = 1;