Skip to content

LLM inference in C/C++

C++ ggml

test: flush status (#28352)

kurquhar8212c7802455
diff --git a/tests/test-backend-ops.cpp b/tests/test-backend-ops.cpp
index e198d09221..917faabfaa 100644
--- a/tests/test-backend-ops.cpp
+++ b/tests/test-backend-ops.cpp
@@ -845,6 +845,7 @@ struct console_printer : public printer {
} else if (result.test_mode == "support") {
print_support_console(result);
}
+ fflush(stdout);
}
void print_operation(const test_operation_info & info) override {
@@ -854,6 +855,7 @@ struct console_printer : public printer {
// Handle large tensor skip first
if (info.is_large_tensor_skip) {
printf("skipping large tensors for speed \n");
+ fflush(stdout);
return;
}
@@ -864,6 +866,7 @@ struct console_printer : public printer {
} else {
printf("not supported [%s]\n", info.backend_name.c_str());
}
+ fflush(stdout);
return;
}
@@ -900,6 +903,7 @@ struct console_printer : public printer {
} else {
printf("\033[1;31mFAIL\033[0m\n");
}
+ fflush(stdout);
}
void print_summary(const test_summary_info & info) override {