Explorar el Código

Define STARPU_HAVE_MAGMA if and only if magma was enabled

Cédric Augonnet hace 16 años
padre
commit
075c75f788
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      configure.ac

+ 3 - 1
configure.ac

@@ -285,7 +285,9 @@ fi
 
 AC_MSG_CHECKING(whether MAGMA should be used)
 AC_MSG_RESULT($enable_magma)
-AC_DEFINE(STARPU_HAVE_MAGMA, [1], [use MAGMA library])
+if test x$enable_magma; then
+	AC_DEFINE(STARPU_HAVE_MAGMA, [1], [use MAGMA library])
+fi
 
 # cufftDoubleComplex may not be available on an old CUDA setup
 AC_CHECK_TYPE(cufftDoubleComplex,