ops_metal newCommandQueueWithMaxCommandBufferCount_(1024) (#1664)

This commit is contained in:
chenyu
2023-08-24 15:42:00 -07:00
committed by GitHub
parent 1ba8f0dca3
commit f00325e77d

View File

@@ -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):