From f00325e77df7a2b39b9fc29528b690828643b579 Mon Sep 17 00:00:00 2001 From: chenyu Date: Thu, 24 Aug 2023 15:42:00 -0700 Subject: [PATCH] ops_metal newCommandQueueWithMaxCommandBufferCount_(1024) (#1664) --- tinygrad/runtime/ops_metal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinygrad/runtime/ops_metal.py b/tinygrad/runtime/ops_metal.py index 2165a87d8f..3a1ba19a36 100644 --- a/tinygrad/runtime/ops_metal.py +++ b/tinygrad/runtime/ops_metal.py @@ -19,7 +19,7 @@ class _METAL: def __init__(self): self.mtl_buffers_in_flight: List[Any] = [] self.device = Metal.MTLCreateSystemDefaultDevice() - self.mtl_queue = self.device.newCommandQueue() + self.mtl_queue = self.device.newCommandQueueWithMaxCommandBufferCount_(1024) self.allocator = MetalAllocator(self.device.dedicatedMemorySize() or self.device.sharedMemorySize()) # TODO: is there a better way to do this? def synchronize(self):