From fdb48997ee3ed2b326a92f8e0cc7f72a4b38d8c8 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 13 Oct 2017 15:23:00 +0000 Subject: Refactored debug settings Replaced eigenlib_dgemm with fast_dgemm - 10-30% speed gain for GEMMA --- src/debug.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/debug.h') diff --git a/src/debug.h b/src/debug.h index 0f7b38f..ee36887 100644 --- a/src/debug.h +++ b/src/debug.h @@ -13,18 +13,25 @@ void gemma_gsl_error_handler (const char * reason, void debug_set_debug_mode(bool setting); void debug_set_no_check_mode(bool setting); void debug_set_strict_mode(bool setting); +void debug_set_quiet_mode(bool setting); +void debug_set_issue(uint issue); +void debug_set_legacy_mode(bool setting); bool is_debug_mode(); bool is_no_check_mode(); +bool is_check_mode(); bool is_strict_mode(); +bool is_quiet_mode(); +bool is_issue(uint issue); +bool is_legacy_mode(); gsl_matrix *gsl_matrix_safe_alloc(size_t rows,size_t cols); // Validation routines -void do_validate_K(const gsl_matrix *K, bool do_check, bool strict, const char *__file, int __line); +void do_validate_K(const gsl_matrix *K, const char *__file, int __line); #define ROUND(f) round(f * 10000.)/10000 -#define validate_K(K,check,strict) do_validate_K(K,check,strict,__FILE__,__LINE__) +#define validate_K(K) do_validate_K(K,__FILE__,__LINE__) #define warning_at_msg(__file,__line,msg) cerr << "**** WARNING: " << msg << " in " << __file << " at line " << __line << endl; -- cgit v1.2.3