Browse Source

Rename STARPU_BLAS_LIB_HAS_CBLAS_SGEMV to STARPU_HAVE_CBLAS_H

Since in the end we just check for the presence of cblas_sgemv
Samuel Thibault 5 years ago
parent
commit
857f10723f
3 changed files with 4 additions and 4 deletions
  1. 2 2
      configure.ac
  2. 1 1
      examples/common/blas.h
  3. 1 1
      include/starpu_config.h.in

+ 2 - 2
configure.ac

@@ -3015,9 +3015,9 @@ fi
 if test x$blas_lib = xsystem; then
     AC_CHECK_HEADER([cblas.h], [have_cblas_h=yes], [have_cblas_h=no])
 fi
-AM_CONDITIONAL(BLAS_LIB_HAS_CBLAS_SGEMV, test x$have_cblas_h = xyes)
+AM_CONDITIONAL(STARPU_HAVE_CBLAS_H, test x$have_cblas_h = xyes)
 if test x$have_cblas_h = xyes; then
-    AC_DEFINE(STARPU_BLAS_LIB_HAS_CBLAS_SGEMV, [1], [The blas library has cblas_sgemv])
+    AC_DEFINE(STARPU_HAVE_CBLAS_H, [1], [The blas library has blas.h])
 fi
 
 AM_CONDITIONAL(ATLAS_BLAS_LIB, test x$blas_lib = xatlas)

+ 1 - 1
examples/common/blas.h

@@ -21,7 +21,7 @@
 
 #include <starpu.h>
 
-#if defined(STARPU_ATLAS) || defined(STARPU_BLAS_LIB_HAS_CBLAS_SGEMV)
+#if defined(STARPU_ATLAS) || defined(STARPU_HAVE_CBLAS_H)
 #include <cblas.h>
 #endif
 

+ 1 - 1
include/starpu_config.h.in

@@ -71,7 +71,7 @@
 #undef STARPU_MKL
 #undef STARPU_ARMPL
 #undef STARPU_SYSTEM_BLAS
-#undef STARPU_BLAS_LIB_HAS_CBLAS_SGEMV
+#undef STARPU_HAVE_CBLAS_H
 
 #undef STARPU_OPENCL_DATADIR
 #undef STARPU_HAVE_MAGMA