Przeglądaj źródła

add new macro STARPU_VERSION

Nathalie Furmento 13 lat temu
rodzic
commit
d3cee6aa6e
2 zmienionych plików z 6 dodań i 1 usunięć
  1. 4 1
      configure.ac
  2. 2 0
      include/starpu_config.h.in

+ 4 - 1
configure.ac

@@ -66,7 +66,10 @@ if test x$SIZEOF_VOID_P = x4; then
 	esac
 fi
 
-
+# Get the version of StarPU that we are installing
+STARPU_VERSION=1.0.0
+AC_SUBST(STARPU_VERSION)
+AC_DEFINE_UNQUOTED([STARPU_VERSION], [$STARPU_VERSION], [Version of StarPU])
 
 # This will be useful for program which use CUDA (and .cubin files) which need
 # some path to the CUDA code at runtime.

+ 2 - 0
include/starpu_config.h.in

@@ -18,6 +18,8 @@
 #ifndef __STARPU_CONFIG_PUBLIC_H__
 #define __STARPU_CONFIG_PUBLIC_H__
 
+#undef STARPU_VERSION
+
 #undef STARPU_USE_CPU
 #undef STARPU_USE_CUDA
 #undef STARPU_USE_OPENCL