Cache GPU remainder configs and fold constant modulos
This commit is contained in:
1 parent
0b43880959
commit
c6008a65b4
3 files changed
+32
-13
No files matched your search
@@ -1611,7 +1611,7 @@ internal static partial class PrimeOrderGpuHeuristics
|
||||
private static ulong CalculateByDoublingKernel(ulong prime)
|
||||
{
|
||||
ulong order = 1UL;
|
||||
ulong value = 2UL % prime;
|
||||
ulong value = 2UL; // Candidate primes exceed two, so the modulo would always return two.
|
||||
|
||||
while (value != 1UL)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user