Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx
/ reset_peak_memory
Method
reset_peak_memory
mlx/backend/cuda/allocator.cpp:355–358 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
353
}
354
355
void CudaAllocator::reset_peak_memory() {
356
std::lock_guard lock(mutex_);
357
peak_memory_ = 0;
358
}
359
360
size_t CudaAllocator::get_memory_limit() {
361
return memory_limit_;
Callers
6
test_load_donation
Method · 0.45
test_fsdp_peak_memory
Method · 0.45
test_memory_info
Method · 0.45
test_donation
Method · 0.45
reset_peak_memory
Function · 0.45
bench_shape
Function · 0.45
Calls
no outgoing calls
Tested by
4
test_load_donation
Method · 0.36
test_fsdp_peak_memory
Method · 0.36
test_memory_info
Method · 0.36
test_donation
Method · 0.36