From 5ff2a6c762d678dd2977daa3f62eadc076bf8ca8 Mon Sep 17 00:00:00 2001 From: Awni Hannun Date: Thu, 28 Dec 2023 17:01:41 -0800 Subject: [PATCH] nit in comment --- mlx/backend/metal/allocator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlx/backend/metal/allocator.cpp b/mlx/backend/metal/allocator.cpp index e5deef994..5069cbad7 100644 --- a/mlx/backend/metal/allocator.cpp +++ b/mlx/backend/metal/allocator.cpp @@ -51,7 +51,7 @@ MTL::Buffer* BufferCache::reuse_from_cache(size_t size) { // Find the closest buffer in pool MTL::Buffer* pbuf = nullptr; - // Make sure we use > 50% of the available memory + // Make sure we use most of the available memory if (auto it = buffer_pool_.lower_bound(size); it != buffer_pool_.end() && it->first < std::min(2 * size, size + vm_page_size)) { // Collect from the cache