mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
spelling: memory
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -165,7 +165,7 @@ Buffer MetalAllocator::malloc(size_t size) {
|
|||||||
|
|
||||||
// Prepare to allocate new memory as needed
|
// Prepare to allocate new memory as needed
|
||||||
if (!buf) {
|
if (!buf) {
|
||||||
// If we are under very high memoory pressure, we don't allocate further
|
// If we are under very high memory pressure, we don't allocate further
|
||||||
if (device_->currentAllocatedSize() >= block_limit_) {
|
if (device_->currentAllocatedSize() >= block_limit_) {
|
||||||
return Buffer{nullptr};
|
return Buffer{nullptr};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user