Document GPU sieve invariants
This commit is contained in:
1 parent
27739acd02
commit
fa6f75c158
4 files changed
+89
-82
No files matched your search
@@ -30,9 +30,9 @@ public class PrimeTesterIsPrimeTests
|
||||
var tester = new PrimeTester();
|
||||
GpuContextPool.ForceCpu = true;
|
||||
|
||||
tester.IsPrimeGpu(11UL, CancellationToken.None).Should().BeTrue();
|
||||
tester.IsPrimeGpu(137UL, CancellationToken.None).Should().BeTrue();
|
||||
|
||||
tester.IsPrimeGpu(12UL, CancellationToken.None).Should().BeFalse();
|
||||
tester.IsPrimeGpu(341UL, CancellationToken.None).Should().BeFalse();
|
||||
|
||||
GpuContextPool.ForceCpu = false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user