GPU usage restored to duplicate CL exceptions.
This commit is contained in:
1 parent
8541bc4928
commit
b031003a46
2 files changed
+4
-3
No files matched your search
@@ -1177,7 +1177,7 @@ internal static partial class PrimeOrderCalculator
|
||||
// bool isPrime = HeuristicCombinedPrimeTester.IsPrimeGpu(gpu, composite);
|
||||
bool runOnGpu = RunOnGpu();
|
||||
|
||||
bool isPrime = runOnGpu ? PrimeTester.IsPrime(composite) : HeuristicCombinedPrimeTester.IsPrimeGpu(gpu, composite);
|
||||
bool isPrime = !runOnGpu ? PrimeTester.IsPrime(composite) : HeuristicCombinedPrimeTester.IsPrimeGpu(gpu, composite);
|
||||
// bool isPrime = PrimeTester.IsPrime(composite);
|
||||
// bool isPrime = Open.Numeric.Primes.Prime.Numbers.IsPrime(composite);
|
||||
|
||||
@@ -1375,6 +1375,7 @@ internal static partial class PrimeOrderCalculator
|
||||
|
||||
private static bool RunOnGpu()
|
||||
{
|
||||
return true;
|
||||
const int GpuFrequency = 1024 - 1;
|
||||
|
||||
int cpuCount = Atomic.Add(target: ref _cpuCount, 1);
|
||||
|
||||
Reference in new issue
Block a user