CPU vs GPU work delegation adjusted to better utilize CPU.

This commit is contained in:
mlemanczyk committed 2025-11-29 12:09:33 +01:00
1 parent c311b27dcc
commit 6a1198c417
12 files changed
+576 -344

No files matched your search

@@ -953,7 +953,7 @@ internal static partial class PrimeOrderCalculator
if (value <= ulong.MaxValue)
{
// return HeuristicPrimeTester.Exclusive.IsPrimeCpu((ulong)value, CancellationToken.None);
return PrimeTester.IsPrime((ulong)value);
return PrimeTester.IsPrimeCpu((ulong)value);
}
if ((value & UInt128.One) == UInt128.Zero)