Revert "Stream handling simplified to avoid dictionary lookups in favor of array lookups with known indexes."
This reverts commit a84445ef2a.
This commit is contained in:
1 parent
a84445ef2a
commit
c413ee1162
15 files changed
+73
-67
No files matched your search
@@ -25,7 +25,7 @@ public class GpuKernelPool
|
||||
|
||||
internal static KernelContainer GetOrAddKernels(int acceleratorIndex, AcceleratorStream stream, KernelType kernelType)
|
||||
{
|
||||
var pool = _pool ??= new KernelContainer[PerfectNumberConstants.RollingAccelerators];
|
||||
var pool = _pool ??= [];
|
||||
if (pool[acceleratorIndex] is not {} kernels)
|
||||
{
|
||||
kernels = new();
|
||||
|
||||
Reference in new issue
Block a user