aboutsummaryrefslogtreecommitdiff
path: root/src/gemma.cpp
diff options
context:
space:
mode:
authorArtyom Bologov2024-08-17 02:43:47 +0400
committerArtyom Bologov2024-08-17 02:43:47 +0400
commitda3c5ad5c6db46fb2198a5bf75648e71e2a17996 (patch)
treee6f0d97327b5c2f2c60402d4cfb9b92e40609155 /src/gemma.cpp
parent3f9296136abb54717c2ebd94252aafbf9ed09e33 (diff)
downloadpangemma-da3c5ad5c6db46fb2198a5bf75648e71e2a17996.tar.gz
Add -debug-dump CLI flag for dumping data to files.
Diffstat (limited to 'src/gemma.cpp')
-rw-r--r--src/gemma.cpp3
1 files changed, 3 insertions, 0 deletions
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);