MCPcopy 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
355void CudaAllocator::reset_peak_memory() {
356 std::lock_guard lock(mutex_);
357 peak_memory_ = 0;
358}
359
360size_t CudaAllocator::get_memory_limit() {
361 return memory_limit_;

Callers 6

test_load_donationMethod · 0.45
test_fsdp_peak_memoryMethod · 0.45
test_memory_infoMethod · 0.45
test_donationMethod · 0.45
reset_peak_memoryFunction · 0.45
bench_shapeFunction · 0.45

Calls

no outgoing calls

Tested by 4

test_load_donationMethod · 0.36
test_fsdp_peak_memoryMethod · 0.36
test_memory_infoMethod · 0.36
test_donationMethod · 0.36