Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ggml/src/ggml-hrx/runtime/host-memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2184,7 +2184,11 @@ void HostWeightCache::clear() {
resident_bytes_ = 0;
available_at_first_weight_ = 0;
oversize_warned_ = false;
stats_ = {};
// engine#2393: the live gauges follow the entries just dropped; hits, misses, evictions, materialized bytes and
// duplicate warnings are counts over the cache's life, which is what AMD's clear() keeps (9bf5871) and what
// tests/hrx-buffer-test.cpp asserts. The #327 merge had kept this branch's older `stats_ = {}`.
stats_.allocation_count = 0;
stats_.resident_bytes = 0;
if (arena_ != nullptr) {
hrx_buffer_release(arena_);
arena_ = nullptr;
Expand Down