| 776 | } |
| 777 | |
| 778 | void 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 | |
| 790 | Verifier::~Verifier() { |
no test coverage detected