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++

STRATA_ACT_DUMP: keep the accumulator alive for the exit flush

Niko12210b4e603cfd6d
diff --git a/src/kernels/cpu/native_expert.cpp b/src/kernels/cpu/native_expert.cpp
index 66ec2db08..0e8f92c4e 100644
--- a/src/kernels/cpu/native_expert.cpp
+++ b/src/kernels/cpu/native_expert.cpp
@@ -170,8 +170,8 @@ struct ActDump {
static void act_dump_flush();
};
ActDump& act_dump() {
- static ActDump d;
- return d;
+ static ActDump* d = new ActDump; // never destroyed: the atexit flush must still find it
+ return *d;
}
void ActDump::act_dump_flush() {
ActDump& d = act_dump();