GpuContextPool removed, because we share context and accelerator between threads, using streams to separate.

This commit is contained in:
mlemanczyk committed 2025-11-07 12:52:20 +01:00
1 parent 7c035239b4
commit f4e365194d
19 files changed
+285 -425

No files matched your search

+1 -1
View File
@@ -269,7 +269,7 @@ public sealed class DivisorCycleCache
int length = divisors.Length;
var gpuLease = GpuKernelPool.Rent();
Accelerator accelerator = gpuLease.Accelerator;
Accelerator accelerator = SharedGpuContext.Accelerator;
var stream = gpuLease.Stream;
var kernel = _gpuKernel;
EnsureCapacity(length);