serve: a split's stage-0 GPU profile line keeps its text (#848); later stages say which stage

This commit is contained in:
Niko1221 committed 2026-10-05 11:03:50 +02:00
1 parent 43c8cfa9e2
commit b4405a0eaa
1 file changed
+3 -2
+3 -2
View File
@@ -7267,8 +7267,9 @@ int main(int argc, char** argv) {
(d1.entries - ds0.entries) / (w * L), (d1.hits - ds0.hits) / (w * L), (d1.pcie - ds0.pcie) / (w * L));
for (int st = 0; st < n_stages; ++st) { // every stage's GPU profile, not only the first card's
const std::string pr = stage_ver(st).profile_report();
if (!pr.empty())
std::fprintf(stderr, "strata decode GPU stages, stage %d (ms/window):%s\n", st, pr.c_str());
if (pr.empty()) continue;
if (st == 0) std::fprintf(stderr, "strata decode GPU stages (ms/window):%s\n", pr.c_str()); // text as before
else std::fprintf(stderr, "strata decode GPU stages, stage %d (ms/window):%s\n", st, pr.c_str());
}
}
if (!cancelled) {