aboutsummaryrefslogtreecommitdiff
path: root/llama.cpp
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-04-23 18:15:39 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-04-23 18:15:39 +0300
commite4422e299c10c7e84c8e987770ef40d31905a76b (patch)
tree03696873aa6d540a968e047271758cb1b25822cc /llama.cpp
parent53c8434398b3cba7ac6298cdd44abd40f0e640b1 (diff)
ggml : better PERF prints + support "LLAMA_PERF=1 make"
Diffstat (limited to 'llama.cpp')
-rw-r--r--llama.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llama.cpp b/llama.cpp
index 34327ec..8c1d657 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -1250,9 +1250,11 @@ static bool llama_eval_internal(
ggml_build_forward_expand(&gf, inpL);
ggml_graph_compute (ctx0, &gf);
+#ifdef GGML_PERF
// print timing information per ggml operation (for debugging purposes)
// requires GGML_PERF to be defined
- //ggml_graph_print(&gf);
+ ggml_graph_print(&gf);
+#endif
// plot the computation graph in dot format (for debugging purposes)
//if (n_past%100 == 0) {