We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10f19c1 commit 36b4f7eCopy full SHA for 36b4f7e
examples/main/main.cpp
@@ -25,6 +25,7 @@
25
#endif
26
27
static console_state con_st;
28
+static llama_context ** g_ctx;
29
30
static bool is_interacting = false;
31
@@ -36,6 +37,7 @@ void sigint_handler(int signo) {
36
37
if (!is_interacting) {
38
is_interacting=true;
39
} else {
40
+ llama_print_timings(*g_ctx);
41
_exit(130);
42
}
43
@@ -92,8 +94,9 @@ int main(int argc, char ** argv) {
92
94
93
95
// params.prompt = R"(// this function checks if the number n is prime
96
//bool is_prime(int n) {)";
-
97
+
98
llama_context * ctx;
99
+ g_ctx = &ctx;
100
101
// load the model
102
{
0 commit comments