aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--INSTALL.md3
-rw-r--r--src/debug.h5
-rw-r--r--src/fastblas.cpp2
3 files changed, 9 insertions, 1 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 19ae290..bfd10bb 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -88,6 +88,9 @@ should compile with GCC_FLAGS="" to disable optimizations (-O3). E.g.
make EIGEN_INCLUDE_PATH=~/.guix-profile/include/eigen3 WITH_OPENBLAS=1 GCC_FLAGS=
+If you get older OpenBlas errors you may need to add
+OPENBLAS_LEGACY=1.
+
Other options, such as compiling with warnings, are listed in the
Makefile.
diff --git a/src/debug.h b/src/debug.h
index ee36887..7d2197d 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -49,6 +49,11 @@ inline void fail_at_msg(bool strict, const char *__file, int __line, const char
# define __ASSERT_VOID_CAST (void)
# endif
+inline void fail_msg(const char *msg) {
+ std::cerr << "**** FAILED: " << msg << std::endl;
+ exit(5);
+}
+
#if defined NDEBUG
#define warning_msg(msg) cerr << "**** WARNING: " << msg << endl;
diff --git a/src/fastblas.cpp b/src/fastblas.cpp
index 6180683..a286de7 100644
--- a/src/fastblas.cpp
+++ b/src/fastblas.cpp
@@ -182,7 +182,7 @@ static void fast_cblas_dgemm(const char *TransA, const char *TransB, const doubl
C->data, C->tda);
} else {
- throw invalid_argument("Range error in dgemm");
+ fail_msg("Range error in dgemm");
}
}