MCPcopy Create free account
hub / github.com/Niko1221/Strata / diag

Method diag

engine/src/core/verify.cpp:778–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776}
777
778void Verifier::diag(std::FILE* f) const {
779 auto rd = [](const uint32_t* p) { return p ? *(const volatile uint32_t*) p : 0u; };
780 // #251: outside a verify stage these are the LAST window's numbers (it finished), not the stalled work's
781 const char* where = progress().where.load();
782 const bool current = where != nullptr && std::strncmp(where, "verify window", 13) == 0;
783 std::fprintf(f, " verify window%s: %d tokens at position %lld, host at layer step %u; the GPU rang %u; flags: "
784 "served %u, plan (A) %u, copies (B) %u\n", current ? "" : " (last window, not the current stage)",
785 last_t_, (long long) last_pos0_, cur_layer_ + 1, rd(h_seq_), rd(h_flag_), rd(h_flagA_), rd(h_flagB_));
786 trace_dump(f); // #649: STRATA_VERIFY_TRACE=1 only
787}
788
789
790Verifier::~Verifier() {

Callers 8

get_quant_expertFunction · 0.45
_encode_expert_workerFunction · 0.45
run_stream_encodeFunction · 0.45
damped_cholesky_invFunction · 0.45
hessian_factorFunction · 0.45
diag_active_verifierFunction · 0.45

Calls 3

progressFunction · 0.50
rdFunction · 0.50
loadMethod · 0.45

Tested by

no test coverage detected