Embed GPU scratch buffers in context leases

This commit is contained in:
Marek Lemańczyk committed 2025-10-29 16:25:38 +01:00
1 parent b753654ebb
commit 13b59abb1c
3 files changed
+28 -17

No files matched your search

+2 -3
View File
@@ -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)
{