Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

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

Niko1221b4405a0eaaab
diff --git a/src/program/generate.cpp b/src/program/generate.cpp
index 9fff5e5af..e7cdc14d2 100644
--- a/src/program/generate.cpp
+++ b/src/program/generate.cpp
@@ -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) {