mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 11:38:06 +08:00
increase block limit to original
This commit is contained in:
parent
97ea5b23cb
commit
3541a58445
@ -148,7 +148,7 @@ MetalAllocator::MetalAllocator()
|
|||||||
: device_(device(mlx::core::Device::gpu).mtl_device()),
|
: device_(device(mlx::core::Device::gpu).mtl_device()),
|
||||||
buffer_cache_(device_),
|
buffer_cache_(device_),
|
||||||
peak_allocated_size_(0),
|
peak_allocated_size_(0),
|
||||||
block_limit_(device_->recommendedMaxWorkingSetSize()),
|
block_limit_(1.5 * device_->recommendedMaxWorkingSetSize()),
|
||||||
gc_limit_(0.95 * device_->recommendedMaxWorkingSetSize()) {}
|
gc_limit_(0.95 * device_->recommendedMaxWorkingSetSize()) {}
|
||||||
|
|
||||||
Buffer MetalAllocator::malloc(size_t size, bool allow_swap /* = false */) {
|
Buffer MetalAllocator::malloc(size_t size, bool allow_swap /* = false */) {
|
||||||
|
Loading…
Reference in New Issue
Block a user