mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 12:06:42 +08:00
spelling: memory
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
fe3c914d41
commit
6c1cd87435
@ -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};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user