Embed GPU scratch buffers in context leases
This commit is contained in:
1 parent
b753654ebb
commit
13b59abb1c
3 files changed
+28
-17
No files matched your search
@@ -270,13 +270,12 @@ public sealed class HeuristicPrimeTester
|
||||
var gpu = PrimeTester.PrimeTesterGpuContextPool.Rent(batchCapacity, 1);
|
||||
var accelerator = gpu.Accelerator;
|
||||
var state = gpu.State;
|
||||
var scratch = gpu.Scratch;
|
||||
|
||||
bool compositeDetected = false;
|
||||
int count = 0;
|
||||
|
||||
var inputView = scratch.Input.View;
|
||||
var outputView = scratch.Output.View;
|
||||
var inputView = gpu.Input.View;
|
||||
var outputView = gpu.Output.View;
|
||||
|
||||
bool ProcessBatch(int length)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user