Tiny cleanup
This commit is contained in:
1 parent
9e5123d3cc
commit
c0b8fa07a2
1 file changed
+2
-1
@@ -398,6 +398,7 @@ internal static class Program
|
|||||||
{
|
{
|
||||||
_testTargetPrimeCount = testPrimeCandidateLimit;
|
_testTargetPrimeCount = testPrimeCandidateLimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
CalculationResultHandler.InitializeOutputBuffer();
|
CalculationResultHandler.InitializeOutputBuffer();
|
||||||
|
|
||||||
// Limit GPU concurrency only for prime checks (LL/NTT & GPU order scans).
|
// Limit GPU concurrency only for prime checks (LL/NTT & GPU order scans).
|
||||||
@@ -424,6 +425,7 @@ internal static class Program
|
|||||||
static () => _lastCompositeP = false,
|
static () => _lastCompositeP = false,
|
||||||
static (candidate, searchedMersenne, detailedCheck, passedAllTests) => CalculationResultHandler.HandleResult(candidate, searchedMersenne, detailedCheck, passedAllTests, _lastCompositeP),
|
static (candidate, searchedMersenne, detailedCheck, passedAllTests) => CalculationResultHandler.HandleResult(candidate, searchedMersenne, detailedCheck, passedAllTests, _lastCompositeP),
|
||||||
threadCount);
|
threadCount);
|
||||||
|
|
||||||
CalculationResultHandler.FlushBuffer();
|
CalculationResultHandler.FlushBuffer();
|
||||||
CalculationResultHandler.ReleaseOutputBuffer();
|
CalculationResultHandler.ReleaseOutputBuffer();
|
||||||
if (stopwatch is not null)
|
if (stopwatch is not null)
|
||||||
@@ -653,5 +655,4 @@ internal static class Program
|
|||||||
detailedCheck = MersenneTesters.Value!.IsMersennePrime(p);
|
detailedCheck = MersenneTesters.Value!.IsMersennePrime(p);
|
||||||
return detailedCheck;
|
return detailedCheck;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user