Remove CPU fallback from GPU context pool
This commit is contained in:
1 parent
3e2d2b05b1
commit
d476748216
2 files changed
+138
-132
No files matched your search
@@ -396,7 +396,10 @@ public ref struct GpuKernelLease(IDisposable limiter, GpuContextLease gpu, Kerne
|
||||
_stream?.Dispose();
|
||||
_stream = null;
|
||||
|
||||
_gpu?.Dispose();
|
||||
if (_gpu.HasValue)
|
||||
{
|
||||
_gpu.Value.ReturnToPool();
|
||||
}
|
||||
_gpu = null;
|
||||
|
||||
_executionLock = null;
|
||||
|
||||
Reference in new issue
Block a user