Add cblas_xerbla()
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Wed, 26 Apr 2017 17:58:59 +0000 (19:58 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2017 17:58:59 +0000 (19:58 +0200)
interface/xerbla.c [new file with mode: 0644]

diff --git a/interface/xerbla.c b/interface/xerbla.c
new file mode 100644 (file)
index 0000000..b2687fb
--- /dev/null
@@ -0,0 +1,22 @@
+#ifdef CBLAS
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdarg.h>
+#include "common.h"
+
+void CNAME(blasint p, char *rout, char *form, ...)
+{
+   va_list args;
+
+   va_start(args, form);
+
+   if (p)
+      fprintf(stderr, "Parameter %d to routine %s was incorrect\n", p, rout);
+   vfprintf(stderr, form, argptr);
+   va_end(args);
+   exit(-1);
+}
+#endif
+