mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 11:38:06 +08:00
remove cache for now
This commit is contained in:
parent
c67a48be48
commit
8fbd760b90
@ -1,6 +1,5 @@
|
||||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <iostream>
|
||||
#include "mlx/backend/metal/allocator.h"
|
||||
#include "mlx/backend/metal/metal.h"
|
||||
|
||||
@ -41,7 +40,8 @@ Buffer MetalAllocator::malloc(size_t size, bool allow_swap /* = false */) {
|
||||
// if (!buf) {
|
||||
// If we have memory pressure, first check if we can reclaim some memory
|
||||
// from the cache
|
||||
// if (auto new_size = device_->currentAllocatedSize() + size; new_size >= block_limit_) {
|
||||
// if (auto new_size = device_->currentAllocatedSize() + size; new_size >=
|
||||
// block_limit_) {
|
||||
// buffer_cache_.clear();
|
||||
// buffer_cache_.release_cached_buffers(
|
||||
// std::max(new_size - block_limit_, size));
|
||||
|
Loading…
Reference in New Issue
Block a user