Most device buffers integrated into PrimeOrderCalculatorAccelerator. PrimeOrderCalculator switched to partial factoring on GPU.

This commit is contained in:
mlemanczyk committed 2025-11-26 03:16:39 +01:00
1 parent 5b48a89448
commit 13498dc460
17 files changed
+483 -432

No files matched your search

@@ -0,0 +1,14 @@
namespace PerfectNumbers.Core.Gpu;
public static class PrimeOrderConstants
{
public const int GpuSmallPrimeFactorSlots = 64;
public const int HeuristicCandidateLimit = 512;
public const int HeuristicStackCapacity = 256;
public const int MaxGpuBatchSize = 256;
public const ulong Pow2WindowFallbackThreshold = 32UL;
public const int Pow2WindowOddPowerCount = 1 << (Pow2WindowSizeBits - 1);
public const int Pow2WindowSizeBits = 8;
public const int WideStackThreshold = 12;
}