Temporary restored delegating all work to CPU in CPU mode in preparation for a branch-less split.

This commit is contained in:
mlemanczyk committed 2025-11-30 15:40:03 +01:00
1 parent 67c1d9309a
commit c3254e3fda
2 files changed
+2 -2

No files matched your search

@@ -8,7 +8,7 @@ public static class PerfectNumberConstants
public const int DefaultSmallPrimeFactorSlotCount = 64; public const int DefaultSmallPrimeFactorSlotCount = 64;
public const int DefaultSpecialMaxFactorCapacity = 1024; public const int DefaultSpecialMaxFactorCapacity = 1024;
public const ulong ExtraDivisorCycleSearchLimit = 64UL; public const ulong ExtraDivisorCycleSearchLimit = 64UL;
public const int GpuFrequency = 2048 - 1; public const int GpuFrequency = 16384 - 1;
public const int MaxQForDivisorCycles = 4_000_000; public const int MaxQForDivisorCycles = 4_000_000;
public static readonly uint PrimesLimit = 1_000_000; //(ulong)Array.MaxLength;// 1_000_000; public static readonly uint PrimesLimit = 1_000_000; //(ulong)Array.MaxLength;// 1_000_000;
public const int MaxOddPowersCount = 128; public const int MaxOddPowersCount = 128;
@@ -1427,7 +1427,7 @@ internal static partial class PrimeOrderCalculator
private static bool RunOnCpu() private static bool RunOnCpu()
{ {
// return false; // return false;
// return true; return true;
// int cpuCount; // int cpuCount;
// lock(_sync) // lock(_sync)