BinaryGcd switched to the best performing variant according to benchmarks.
This commit is contained in:
1 parent
be435b7760
commit
42447c4e43
9 files changed
+112
-166
No files matched your search
@@ -289,7 +289,8 @@ public sealed class PrimeTester
|
||||
AcceleratorStream stream = AcceleratorStreamPool.Rent(accelerator);
|
||||
inputBuffer.View.CopyFromCPU(stream, values);
|
||||
|
||||
kernel.Launch(stream, 1, length, inputBuffer.View, resultBuffer.View);
|
||||
kernel.Launch(stream, length, inputBuffer.View, resultBuffer.View);
|
||||
|
||||
resultBuffer.View.CopyToCPU(stream, in results);
|
||||
stream.Synchronize();
|
||||
|
||||
|
||||
Reference in new issue
Block a user