Enable GPU fallbacks for CPU order calculations

This commit is contained in:
Marek Lemańczyk committed 2025-10-11 15:58:34 +02:00
1 parent 8fb7f937c0
commit 3c1519874c
3 files changed
+34 -7

No files matched your search

+2
View File
@@ -756,6 +756,8 @@ public class GpuKernelPool
{
private static readonly ConcurrentDictionary<Accelerator, KernelContainer> KernelCache = new(); // TODO: Replace this concurrent map with a simple accelerator-indexed lookup once kernel launchers are prewarmed during startup so we can drop the thread-safe wrapper entirely.
public static bool CpuCycleUsesGpu { get; set; }
private static KernelContainer GetKernels(Accelerator accelerator)
{
return KernelCache.GetOrAdd(accelerator, _ => new KernelContainer());