Browse Source

We may also use the GotoBLAS2 lib

Cédric Augonnet 15 years ago
parent
commit
b0ff916624
1 changed files with 4 additions and 0 deletions
  1. 4 0
      configure.ac

+ 4 - 0
configure.ac

@@ -773,7 +773,11 @@ AC_ARG_WITH(goto-dir, [AS_HELP_STRING([--with-goto-dir=<dir>], [specify GotoBLAS
 
 if test x$blas_lib = xgoto; then
 AC_CHECK_LIB(gfortran, main,,)
+# Perhaps that GotoBLAS2 is available instead (so that we have libgotoblas2.{so,a})
+AC_CHECK_LIB(goto2, sgemm_, [havegoto2=yes], [havegoto2=no])
+if test x$havegoto2 = xno; then
 AC_CHECK_LIB(goto, sgemm_,,AC_MSG_ERROR([cannot find goto lib]))
+fi
 AC_DEFINE(STARPU_GOTO, [1], [use STARPU_GOTO library])
 fi