aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/debug.cpp3
-rw-r--r--src/debug.h1
-rw-r--r--src/gemma.cpp5
3 files changed, 7 insertions, 2 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index 3a62d2a..ddd3c48 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -40,7 +40,7 @@
static bool debug_mode = false;
static bool debug_data_mode = false;
-static bool debug_check = true; // check data/algorithms
+static bool debug_check = false; // check data/algorithms
static bool debug_fpe_check = true; // check floating point errors (intel hardware)
static bool debug_strict = false; // fail on error, more rigorous checks
static bool debug_quiet = false;
@@ -49,6 +49,7 @@ static bool debug_legacy = false; // legacy mode
void debug_set_debug_mode(bool setting) { debug_mode = setting; }
void debug_set_debug_data_mode(bool setting) { debug_data_mode = setting; }
+void debug_set_check_mode(bool setting) {debug_check = setting; }
void debug_set_no_check_mode(bool setting) {debug_check = !setting; }
void debug_set_no_fpe_check_mode(bool setting) {debug_fpe_check = !setting; }
void debug_set_strict_mode(bool setting) { debug_strict = setting; }
diff --git a/src/debug.h b/src/debug.h
index 07adbc2..3b5760b 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -33,6 +33,7 @@ void gemma_gsl_error_handler (const char * reason,
void debug_set_debug_mode(bool setting);
void debug_set_debug_data_mode(bool setting);
+void debug_set_check_mode(bool setting);
void debug_set_no_check_mode(bool setting);
void debug_set_no_fpe_check_mode(bool setting);
void debug_set_strict_mode(bool setting);
diff --git a/src/gemma.cpp b/src/gemma.cpp
index 4e3ae88..0ced70c 100644
--- a/src/gemma.cpp
+++ b/src/gemma.cpp
@@ -716,7 +716,7 @@ void GEMMA::PrintHelp(size_t option) {
if (option == 14) {
cout << " DEBUG OPTIONS" << endl;
- cout << " -no-check disable checks" << endl;
+ cout << " -check enable checks (slower)" << endl;
cout << " -no-fpe-check disable hardware floating point checking" << endl;
cout << " -strict strict mode will stop when there is a problem" << endl;
cout << " -silence silent terminal display" << endl;
@@ -1603,6 +1603,9 @@ void GEMMA::Assign(int argc, char **argv, PARAM &cPar) {
} else if (strcmp(argv[i], "-debug") == 0) {
// cPar.mode_debug = true;
debug_set_debug_mode(true);
+ } else if (strcmp(argv[i], "-check") == 0) {
+ // cPar.mode_check = false;
+ debug_set_check_mode(true);
} else if (strcmp(argv[i], "-no-check") == 0) {
// cPar.mode_check = false;
debug_set_no_check_mode(true);