From da3c5ad5c6db46fb2198a5bf75648e71e2a17996 Mon Sep 17 00:00:00 2001 From: Artyom Bologov Date: Sat, 17 Aug 2024 02:43:47 +0400 Subject: Add -debug-dump CLI flag for dumping data to files. --- src/gemma.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gemma.cpp') diff --git a/src/gemma.cpp b/src/gemma.cpp index b3ca4c5..c73c174 100644 --- a/src/gemma.cpp +++ b/src/gemma.cpp @@ -1601,6 +1601,9 @@ void GEMMA::Assign(int argc, char **argv, PARAM &cPar) { // cPar.mode_debug = true; debug_set_debug_data_mode(true); debug_set_debug_mode(true); + } else if (strcmp(argv[i], "-debug-dump") == 0) { + debug_set_debug_dump_mode(true, (char *)cPar.path_out.c_str()); + debug_set_debug_mode(true); } else if (strcmp(argv[i], "-debug") == 0) { // cPar.mode_debug = true; debug_set_debug_mode(true); -- cgit v1.2.3